/* =============================================
   FINCAN BLOG — Premium Styling
   ============================================= */

/* Blog Layout */
.blog-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    margin-top: 80px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary, #8B7B6E);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--gold-accent, #C8A464);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #D4AF37;
    text-decoration: underline;
}

.breadcrumb .sep {
    color: var(--text-secondary, #8B7B6E);
    opacity: 0.5;
}

/* Blog Hero */
.blog-hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.blog-hero .blog-category {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-accent, #C8A464);
    background: rgba(200, 164, 100, 0.1);
    border: 1px solid rgba(200, 164, 100, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.blog-hero h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary, #F5E6D3) 0%, var(--gold-accent, #C8A464) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary, #8B7B6E);
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Featured Image */
.blog-featured-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 1.25rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color, rgba(200, 164, 100, 0.15));
}

/* Article Content */
.blog-article {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary, #C4B5A5);
}

.blog-article h2 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary, #F5E6D3);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(200, 164, 100, 0.15);
}

.blog-article h3 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #F5E6D3);
    margin: 2rem 0 0.75rem;
}

.blog-article p {
    margin-bottom: 1.25rem;
}

.blog-article ul,
.blog-article ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.blog-article li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.blog-article strong {
    color: var(--text-primary, #F5E6D3);
    font-weight: 600;
}

.blog-article a {
    color: var(--gold-accent, #C8A464);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.blog-article a:hover {
    color: #D4AF37;
}

.blog-article blockquote {
    border-left: 3px solid var(--gold-accent, #C8A464);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(200, 164, 100, 0.05);
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: var(--text-secondary, #C4B5A5);
}

/* Info Box */
.blog-info-box {
    background: var(--bg-card, rgba(200, 164, 100, 0.05));
    border: 1px solid rgba(200, 164, 100, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.blog-info-box h4 {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold-accent, #C8A464);
    margin-bottom: 0.75rem;
}

.blog-info-box p,
.blog-info-box ul {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* CTA Box */
.blog-cta {
    text-align: center;
    padding: 2.5rem 2rem;
    margin: 3rem 0;
    background: linear-gradient(135deg, rgba(200, 164, 100, 0.1) 0%, rgba(200, 164, 100, 0.02) 100%);
    border: 1px solid rgba(200, 164, 100, 0.2);
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-accent, #C8A464), transparent);
}

.blog-cta h3 {
    font-family: 'Lora', serif;
    font-size: 1.35rem;
    color: var(--text-primary, #F5E6D3);
    margin-bottom: 0.75rem;
}

.blog-cta p {
    color: var(--text-secondary, #C4B5A5);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.blog-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #C8A464 0%, #A67C3D 100%);
    color: #1a1512;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(200, 164, 100, 0.3);
}

.blog-cta .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 164, 100, 0.4);
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color, rgba(200, 164, 100, 0.15));
}

.related-posts h3 {
    font-family: 'Lora', serif;
    font-size: 1.35rem;
    color: var(--text-primary, #F5E6D3);
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.related-card {
    background: var(--bg-card, rgba(200, 164, 100, 0.05));
    border: 1px solid var(--border-color, rgba(200, 164, 100, 0.15));
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 164, 100, 0.35);
    box-shadow: 0 8px 24px rgba(200, 164, 100, 0.1);
}

.related-card h4 {
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #F5E6D3);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary, #8B7B6E);
    line-height: 1.5;
}

/* =============================================
   Blog Listing Page
   ============================================= */
.blog-listing-hero {
    padding: 6rem 0 3rem;
    text-align: center;
    margin-top: 60px;
}

.blog-listing-hero h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary, #F5E6D3) 0%, var(--gold-accent, #C8A464) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.blog-listing-hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: var(--text-secondary, #8B7B6E);
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    padding-bottom: 4rem;
}

.blog-card {
    background: var(--bg-card, rgba(200, 164, 100, 0.05));
    border: 1px solid var(--border-color, rgba(200, 164, 100, 0.15));
    border-radius: 1.25rem;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 164, 100, 0.35);
    box-shadow: 0 12px 40px rgba(200, 164, 100, 0.12);
}

.blog-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-accent, #C8A464);
    margin-bottom: 0.75rem;
}

.blog-card h2 {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary, #F5E6D3);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.blog-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: var(--text-secondary, #8B7B6E);
    line-height: 1.6;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    color: var(--text-secondary, #8B7B6E);
}

.blog-card-read {
    color: var(--gold-accent, #C8A464);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* =============================================
   Light Mode Overrides
   ============================================= */
[data-theme="light"] .blog-hero h1,
[data-theme="light"] .blog-listing-hero h1 {
    background: linear-gradient(135deg, #1A1614 0%, #A67C3D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .blog-article h2,
[data-theme="light"] .blog-article h3,
[data-theme="light"] .blog-article strong,
[data-theme="light"] .related-card h4,
[data-theme="light"] .blog-card h2,
[data-theme="light"] .blog-cta h3 {
    color: #1A1614;
}

[data-theme="light"] .blog-article,
[data-theme="light"] .blog-article p,
[data-theme="light"] .blog-meta,
[data-theme="light"] .breadcrumb,
[data-theme="light"] .blog-listing-hero p,
[data-theme="light"] .blog-card p,
[data-theme="light"] .related-card p,
[data-theme="light"] .blog-cta p,
[data-theme="light"] .blog-card-footer {
    color: #5C4E47;
}

[data-theme="light"] .blog-card,
[data-theme="light"] .related-card,
[data-theme="light"] .blog-info-box {
    background: #FFFFFF;
    border-color: rgba(166, 124, 61, 0.12);
    box-shadow: 0 2px 12px rgba(26, 22, 20, 0.04);
}

[data-theme="light"] .blog-card:hover,
[data-theme="light"] .related-card:hover {
    box-shadow: 0 12px 40px rgba(166, 124, 61, 0.1);
    border-color: rgba(166, 124, 61, 0.25);
}

[data-theme="light"] .blog-cta {
    background: linear-gradient(135deg, rgba(166, 124, 61, 0.08) 0%, rgba(166, 124, 61, 0.02) 100%);
    border-color: rgba(166, 124, 61, 0.15);
}

[data-theme="light"] .blog-article blockquote {
    border-left-color: #A67C3D;
    background: rgba(166, 124, 61, 0.04);
    color: #5C4E47;
}

[data-theme="light"] .blog-article h2 {
    border-bottom-color: rgba(166, 124, 61, 0.12);
}

[data-theme="light"] .blog-featured-image {
    border-color: rgba(166, 124, 61, 0.12);
}

/* =============================================
   Blog CTA — App Store Badge
   ============================================= */
.blog-cta .store-button-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blog-cta .app-store-badge {
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s, filter 0.3s;
}

.blog-cta .store-button-wrapper:hover .app-store-badge {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* =============================================
   Blog Mobile — Hamburger Menu
   ============================================= */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary, #F5EFE6);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

[data-theme="light"] .mobile-menu-btn span {
    background: #1A1614;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {

    /* Show hamburger */
    .mobile-menu-btn {
        display: block;
    }

    /* Nav links — mobile overlay */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 21, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 2rem;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        list-style: none;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links a {
        font-size: 1.25rem;
        padding: 0.75rem 1rem;
        display: block;
        text-align: center;
        color: var(--text-primary, #F5EFE6);
        text-decoration: none;
    }

    .nav-links .nav-download-btn {
        margin-top: 0.5rem;
    }

    [data-theme="light"] .nav-links {
        background: rgba(254, 252, 249, 0.98);
    }

    [data-theme="light"] .nav-links a {
        color: #1A1614;
    }

    /* Blog content */
    .blog-container {
        padding: 0 1rem;
    }

    .blog-hero {
        padding: 2rem 0 1.5rem;
    }

    .blog-article {
        font-size: 0.98rem;
    }

    .blog-article h2 {
        font-size: 1.35rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .blog-cta {
        padding: 2rem 1.25rem;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}