/* ==========================================================================
   Blog - Hero
   ========================================================================== */

.blog-hero-bg {
    background-image: url('https://res.cloudinary.com/df3pwsyzy/image/upload/q_auto,f_auto,w_1920/v1768508333/Front_photo_hh5z61.jpg');
}

/* ==========================================================================
   Blog - Post/Category Cards
   ========================================================================== */

/* Fine-tunes the meta-row icon size relative to the surrounding .card-meta
   text (used in post_list, search_results, tag_detail, category_landing). */
.card-meta-icon {
    font-size: 0.9em;
}

/* ==========================================================================
   Post Detail - Preview Mode Banner
   ========================================================================== */

.preview-banner {
    background: var(--color-warning);
    color: #000;
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.preview-banner-icon {
    margin-right: 15px;
}

.preview-banner-link {
    margin-left: 15px;
    color: #000;
    text-decoration: underline;
}

/* ==========================================================================
   Post Detail - Sidebar Author Widget
   ========================================================================== */

.author-photo,
.author-photo-placeholder {
    width: 150px;
    height: 150px;
    border: 4px solid var(--color-navy);
}

.author-photo {
    object-fit: cover;
}

.author-divider {
    border-color: var(--color-gold);
    opacity: 0.3;
    margin: 0 auto 15px;
    width: 60px;
}

.btn-learn-more {
    background-color: var(--color-gold);
    color: var(--color-navy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 4px solid var(--color-navy);
    border-radius: 0;
    padding: 8px 20px;
}

/* ==========================================================================
   Post Detail - Sidebar Related Posts
   ========================================================================== */

.related-post-thumb,
.related-post-thumb-placeholder {
    width: 80px;
    height: 60px;
}

.related-post-thumb {
    object-fit: cover;
}

/* ==========================================================================
   Post Detail - Inline Newsletter Signup
   (injected into .post-content by extra_js after the 3rd paragraph)
   ========================================================================== */

.inline-newsletter-signup {
    margin: 2.5rem 0;
    padding: 0;
}

.inline-newsletter-card {
    background: var(--color-navy);
    border-radius: 8px;
    padding: 2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
    border-left: 4px solid #64b5f6;
    position: relative;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.inline-newsletter-card.is-dismissing {
    opacity: 0;
    transform: scale(0.95);
}

.inline-newsletter-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.inline-newsletter-emoji {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.inline-newsletter-content {
    position: relative;
    z-index: 1;
}

.inline-newsletter-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    border-bottom: 2px solid rgba(100, 181, 246, 0.3);
    padding-bottom: 0.75rem;
}

.inline-newsletter-desc {
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.5;
}

.inline-newsletter-field {
    margin-bottom: 0.75rem;
}

.inline-newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: all 0.3s ease;
}

.inline-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #64b5f6;
    background: white;
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
}

.inline-newsletter-form .btn-subscribe {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #64b5f6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inline-newsletter-form .btn-subscribe:hover {
    background: #42a5f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.inline-newsletter-form .btn-subscribe:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.inline-newsletter-form .form-message {
    text-align: center;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
    margin-top: 0.75rem;
}

.inline-newsletter-form .form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.2);
    color: #c8e6c9;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.inline-newsletter-form .form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.2);
    color: #ffcdd2;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.inline-newsletter-privacy {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.75rem 0 0 0;
}

@media (max-width: 640px) {
    .inline-newsletter-card {
        padding: 1.5rem;
    }
    .inline-newsletter-title {
        font-size: 1.1rem;
    }
}
