/*
 * Nala Blog — English LTR Version
 * Mirrors the Hebrew blog.css with LTR-appropriate adjustments.
 * Shares the same conversion-focused landing page design.
 */

/* ===== Blog Listing Page ===== */

.blog-hero {
    padding: 180px 24px 60px;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.blog-hero .hero-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.15rem;
}

/* Language Filter Tabs */
.blog-lang-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    margin-top: 32px;
}

.lang-tab {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1.5px solid rgba(6, 78, 59, 0.12);
    background: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-tab:hover {
    border-color: var(--emerald-main);
    color: var(--emerald-deep);
}

.lang-tab.active {
    background: var(--emerald-deep);
    color: white;
    border-color: var(--emerald-deep);
}

/* Article Cards Grid */
.blog-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 24px 120px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-premium);
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(16, 185, 129, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--emerald-light), #ecfdf5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image .card-visual {
    font-size: 4rem;
    opacity: 0.6;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.05), rgba(16, 185, 129, 0.08));
}

.blog-card-body {
    padding: 28px 28px 32px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-body);
    opacity: 0.6;
}

.blog-card-tag {
    background: var(--emerald-light);
    color: var(--emerald-deep);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
}

.blog-card-body h2 {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-head);
}

.blog-card-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    padding: 0 28px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--emerald-main);
}

.blog-card-footer .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.blog-card:hover .blog-card-footer .arrow {
    transform: translateX(4px);
}


/* ===== ARTICLE — LANDING PAGE MODE ===== */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-main), var(--emerald-accent));
    z-index: 10000;
    transition: width 0.1s linear;
}

/* === ARTICLE HERO === */
.article-hero {
    padding: 160px 24px 0;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.article-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--emerald-main);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 28px;
    transition: gap 0.3s ease;
}

.article-hero .back-link:hover {
    gap: 12px;
}

.article-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--emerald-light);
    color: var(--emerald-deep);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.article-hero h1 {
    font-family: var(--font-head), sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
}

.article-hero .hero-desc {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-body);
    opacity: 0.8;
    max-width: 680px;
    margin: 0 auto 36px;
    font-weight: 400;
}

/* Hero CTA group */
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--emerald-deep);
    color: white;
    padding: 16px 36px;
    border-radius: 100px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.2);
}

.btn-primary:hover {
    background: var(--emerald-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 78, 59, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--emerald-deep);
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid rgba(6, 78, 59, 0.15);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--emerald-main);
    background: rgba(16, 185, 129, 0.05);
}

.hero-trust {
    font-size: 0.88rem;
    color: var(--text-body);
    opacity: 0.5;
    margin-bottom: 48px;
}

/* Social proof / Trust strip */
.trust-strip {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 32px 0;
    border-top: 1px solid rgba(6, 78, 59, 0.06);
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
    margin: 0 auto 0;
    max-width: 700px;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-item .trust-number {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--emerald-deep);
    display: block;
    line-height: 1;
}

.trust-item .trust-label {
    font-size: 0.82rem;
    color: var(--text-body);
    opacity: 0.6;
    margin-top: 4px;
    display: block;
}


/* === Content Sections === */
.section-block {
    max-width: 780px;
    margin: 0 auto;
    padding: 72px 24px 0;
}

.section-block h2 {
    font-family: var(--font-head), sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: center;
}

.section-block h3 {
    font-family: var(--font-head), sans-serif;
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 14px;
    line-height: 1.35;
}

.section-block p {
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 18px;
    color: var(--text-body);
    font-weight: 400;
}

.section-block strong {
    color: var(--text-head);
    font-weight: 600;
}

.section-block em {
    color: var(--emerald-deep);
    font-style: normal;
    background: rgba(16, 185, 129, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}


/* === Steps / How It Works === */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 36px 0;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.step-card {
    background: white;
    border-radius: var(--radius-premium);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--emerald-light);
    color: var(--emerald-deep);
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    margin-top: 0;
}

.step-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.7;
    margin: 0;
}


/* === Feature Grid (USP cards) === */
.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px auto 36px;
    list-style: none;
    padding: 0 24px;
    max-width: 780px;
}

.feature-list li {
    background: white;
    border: 1px solid rgba(16, 185, 129, 0.08);
    border-radius: 16px;
    padding: 24px;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.feature-list li .f-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
    width: 40px;
    height: 40px;
    background: var(--emerald-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-list li .f-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
    color: var(--text-head);
}

.feature-list li .f-text span {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
}


/* === Highlight Box === */
.highlight-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(6, 78, 59, 0.04));
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--radius-premium);
    padding: 32px 36px;
    margin: 32px 0;
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--emerald-deep);
}

.highlight-box p {
    margin-bottom: 0;
}


/* === Use Cases / Audience Section === */
.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px auto;
    max-width: 780px;
    padding: 0 24px;
}

.audience-card {
    background: white;
    border-radius: var(--radius-premium);
    padding: 28px;
    border: 1px solid rgba(16, 185, 129, 0.06);
    transition: all 0.3s ease;
}

.audience-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.audience-card .audience-icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
    display: block;
}

.audience-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.audience-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.7;
    margin: 0;
}


/* === Specs / Features List === */
.specs-list {
    max-width: 780px;
    margin: 24px auto 36px;
    padding: 0 24px;
    list-style: none;
}

.specs-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list li .spec-check {
    color: var(--emerald-main);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.specs-list li strong {
    color: var(--text-head);
}


/* === Mid-article CTA Banner === */
.mid-cta {
    background: linear-gradient(135deg, var(--emerald-deep), #065f46);
    border-radius: 28px;
    padding: 44px 40px;
    text-align: center;
    margin: 56px auto;
    max-width: 780px;
    position: relative;
    overflow: hidden;
}

.mid-cta::before {
    content: '';
    position: absolute;
    top: -80%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.mid-cta::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.mid-cta h2 {
    color: white;
    font-size: 1.7rem;
    margin: 0 0 12px;
    position: relative;
    border: none;
    padding: 0;
    text-align: center;
}

.mid-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.02rem;
    margin-bottom: 24px;
    position: relative;
}

.mid-cta .btn-primary {
    background: var(--emerald-main);
    position: relative;
}

.mid-cta .btn-primary:hover {
    background: var(--emerald-accent);
}


/* === Bottom CTA (Final conversion) === */
.final-cta {
    background: var(--emerald-deep);
    border-radius: 32px;
    padding: 56px 48px;
    text-align: center;
    margin: 60px auto 40px;
    max-width: 780px;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 60%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.final-cta h2 {
    color: white;
    font-family: var(--font-head), sans-serif;
    font-size: 2rem;
    margin: 0 0 14px;
    border: none;
    padding: 0;
    position: relative;
    text-align: center;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.08rem;
    margin-bottom: 32px;
    position: relative;
}

.final-cta .btn-primary {
    background: var(--emerald-main);
    font-size: 1.1rem;
    padding: 18px 42px;
    position: relative;
}

.final-cta .btn-primary:hover {
    background: var(--emerald-accent);
    transform: translateY(-3px) scale(1.02);
}

.final-cta .trust-note {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 16px;
    position: relative;
}


/* === Share Section === */
.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid rgba(6, 78, 59, 0.06);
    margin: 40px auto 0;
    max-width: 780px;
    padding-left: 24px;
    padding-right: 24px;
}

.article-share span {
    font-weight: 600;
    color: var(--text-head);
    font-size: 0.95rem;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(6, 78, 59, 0.08);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.share-btn:hover {
    background: var(--emerald-light);
    border-color: var(--emerald-main);
    transform: translateY(-2px);
}


/* ===== Responsive ===== */

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 40px 16px 80px;
    }

    .blog-hero {
        padding: 150px 16px 40px;
    }

    .article-hero {
        padding: 140px 16px 0;
    }

    .article-hero h1 {
        font-size: 1.8rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .trust-strip {
        gap: 24px;
    }

    .section-block {
        padding: 48px 16px 0;
    }

    .section-block h2 {
        font-size: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .feature-list {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .audience-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .specs-list {
        padding: 0 16px;
    }

    .mid-cta {
        padding: 32px 20px;
        margin: 40px 16px;
        max-width: none;
    }

    .final-cta {
        padding: 40px 24px;
        margin: 40px 16px 32px;
        max-width: none;
    }

    .final-cta h2 {
        font-size: 1.5rem;
    }

    .highlight-box {
        padding: 24px;
    }

    .article-share {
        padding-left: 16px;
        padding-right: 16px;
    }

    .blog-lang-filter {
        flex-wrap: wrap;
    }
}


/* ===== Scroll Reveal Animations ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.steps-grid [data-reveal]:nth-child(2) {
    transition-delay: 0.1s;
}

.steps-grid [data-reveal]:nth-child(3) {
    transition-delay: 0.2s;
}

.feature-list [data-reveal]:nth-child(2) {
    transition-delay: 0.05s;
}

.feature-list [data-reveal]:nth-child(3) {
    transition-delay: 0.1s;
}

.feature-list [data-reveal]:nth-child(4) {
    transition-delay: 0.15s;
}

.feature-list [data-reveal]:nth-child(5) {
    transition-delay: 0.2s;
}

.feature-list [data-reveal]:nth-child(6) {
    transition-delay: 0.25s;
}

.audience-grid [data-reveal]:nth-child(2) {
    transition-delay: 0.08s;
}

.audience-grid [data-reveal]:nth-child(3) {
    transition-delay: 0.16s;
}

.audience-grid [data-reveal]:nth-child(4) {
    transition-delay: 0.24s;
}


/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--emerald-deep), var(--emerald-main));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}