/* ============================================================
   blog.css — Golden Wings Digital Blog Styles
   www.goldenwings.digital
   ============================================================ */

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ===== NAVBAR — matches style.css scroll effect exactly ===== */

/* Default state — transparent, full width */
#main-header {
    background-color: transparent;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

/* Scrolled state — pill / floating navbar (same as style.css header.scrolled) */
#main-header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.7rem 2rem;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Logo size */
#main-header .logo img {
    height: 60px;
    width: auto;
    transition: all 0.4s ease;
}

#main-header.scrolled .logo img {
    height: 40px;
}

/* Nav links */
#main-header nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

#main-header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

/* Underline hover effect */
#main-header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    border-radius: 2px;
    transition: width 0.3s ease;
}

#main-header nav ul li a:hover,
#main-header nav ul li a.active-link {
    color: #fbbf24;
}

#main-header nav ul li a:hover::after,
#main-header nav ul li a.active-link::after {
    width: 100%;
}

/* Mobile menu icon — hidden on desktop */
.menu-icon {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 9001;
}

.menu-icon:hover {
    background: #2563eb;
}

/* ===== READING PROGRESS BAR ===== */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    z-index: 99999;
    transition: width 0.1s linear;
}

/* ===== NAV OVERLAY (mobile) ===== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 8998;
}

.nav-overlay.active {
    display: block;
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    z-index: 900;
}

#back-to-top.show {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:hover {
    background: #fbbf24;
    color: #0f172a;
    transform: translateY(-3px);
}

/* ===== BLOG HERO ===== */
.blog-hero {
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    background: radial-gradient(ellipse at top, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
}

.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.blog-hero p {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

.blog-section-label {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-section-label h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.blog-section-label p {
    color: #64748b;
    font-size: 0.95rem;
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

/* ===== BLOG CARD ===== */
.blog-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #2563eb);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(245, 158, 11, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
}

/* Card thumbnail */
.blog-thumb {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.blog-thumb-1 { background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(251, 191, 36, 0.1)); }
.blog-thumb-2 { background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(37, 99, 235, 0.1)); }
.blog-thumb-3 { background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(251, 191, 36, 0.1)); }
.blog-thumb-4 { background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(251, 191, 36, 0.1)); }
.blog-thumb-5 { background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(239, 68, 68, 0.1)); }
.blog-thumb-6 { background: linear-gradient(135deg, rgba(20, 184, 166, 0.3), rgba(37, 99, 235, 0.1)); }

/* Card body */
.blog-body {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Tags */
.blog-tag {
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tag-social { background: rgba(37, 99, 235, 0.2);   color: #60a5fa; border: 1px solid rgba(37, 99, 235, 0.3); }
.tag-ads    { background: rgba(16, 185, 129, 0.2);  color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-web    { background: rgba(251, 191, 36, 0.2);  color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.tag-seo    { background: rgba(239, 68, 68, 0.2);   color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.tag-tips   { background: rgba(139, 92, 246, 0.2);  color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

/* Meta info */
.blog-date,
.blog-read-time {
    color: #64748b;
    font-size: 0.78rem;
}

.blog-read-time i {
    color: #fbbf24;
    margin-right: 4px;
}

/* Card text */
.blog-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.blog-card:hover .blog-read-more {
    gap: 14px;
}

/* Featured badge */
.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fbbf24;
    color: #0f172a;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* ===== ARTICLE MODAL ===== */
.article-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 20px;
}

.article-overlay.active {
    display: flex;
}

.article-content {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 24px;
    max-width: 780px;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.35s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.article-top-bar {
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #2563eb);
}

/* Article header */
.article-header {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.article-header h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
}

.article-header .intro {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.7;
}

/* Article body */
.article-body {
    padding: 2rem 2.5rem 2.5rem;
}

.article-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fbbf24;
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 1.5rem 0 0.6rem;
}

.article-body p {
    color: #94a3b8;
    font-size: 0.93rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-body ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 1rem;
}

.article-body ul li {
    color: #94a3b8;
    font-size: 0.93rem;
    line-height: 1.8;
    padding: 4px 0 4px 24px;
    position: relative;
}

.article-body ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-weight: 700;
}

/* Info boxes */
.highlight-box {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    color: #fbbf24;
    font-size: 0.93rem;
    line-height: 1.7;
}

.tip-box {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    color: #93c5fd;
    font-size: 0.93rem;
    line-height: 1.7;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 2.5rem;
}

.article-cta h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.article-cta p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Close article button */
.close-article {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    z-index: 10;
}

.close-article:hover {
    background: #fbbf24;
    color: #0f172a;
    border-color: #fbbf24;
}

/* ===== BOTTOM CTA SECTION ===== */
.blog-cta-section {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.06) 0%, transparent 70%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-cta-section h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.blog-cta-section p {
    color: #94a3b8;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.blog-cta-section .cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE — Mobile & Tablet
   ============================================================ */

/* ── Tablet (≤ 992px) ── */
@media (max-width: 992px) {

    /* Header layout — row with wrap */
    #main-header {
        flex-wrap: wrap;
        padding: 0.8rem 5%;
        gap: 0;
    }

    /* Logo — left */
    #main-header .logo {
        order: 1;
        flex: 1;
    }

    #main-header .logo img {
        height: 40px;
    }

    /* Hamburger — right side, show it */
    #main-header .menu-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 2;
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        cursor: pointer;
        color: #fff;
        transition: background 0.3s;
        flex-shrink: 0;
    }

    #main-header .menu-icon:hover {
        background: #2563eb;
        border-color: #2563eb;
    }

    /* Auth button — hide on mobile, show only on tablet if fits */
    #main-header .auth-buttons {
        display: none !important;
    }

    /* Nav — full width, below logo row */
    #navbar {
        order: 4;
        width: 100%;
        /* override any style.css conflicting rules */
        position: static !important;
        transform: none !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    /* UL — hidden by default, shown when .active added by JS */
    #navbar ul,
    #nav-list {
        display: none !important;
        flex-direction: column !important;
        width: 100%;
        background: rgba(10, 15, 28, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        margin-top: 12px;
        padding: 8px 0;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
        gap: 0 !important;
    }

    /* When JS adds .active to ul */
    #navbar ul.active,
    #nav-list.active {
        display: flex !important;
    }

    #navbar ul li,
    #nav-list li {
        width: 100%;
        text-align: center;
    }

    #navbar ul li a,
    #nav-list li a {
        display: block;
        padding: 13px 20px;
        font-size: 0.95rem;
        font-weight: 500;
        color: #e2e8f0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background 0.2s, color 0.2s;
    }

    #navbar ul li a:hover,
    #nav-list li a:hover,
    #navbar ul li a.active-link,
    #nav-list li a.active-link {
        background: rgba(251, 191, 36, 0.08);
        color: #fbbf24;
    }

    #navbar ul li:last-child a,
    #nav-list li:last-child a {
        border-bottom: none;
    }

    /* Scrolled pill — smaller on mobile */
    #main-header.scrolled {
        width: 94%;
        left: 50%;
        top: 8px;
        border-radius: 20px;
        padding: 0.6rem 4%;
        transform: translateX(-50%);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {

    #main-header {
        padding: 0.7rem 4%;
    }

    #main-header .logo img {
        height: 34px;
    }

    .blog-hero {
        padding: 100px 16px 40px;
    }

    .blog-section {
        padding: 40px 16px 60px;
    }

    .article-header,
    .article-body {
        padding: 1.2rem;
    }

    .article-header h1 {
        font-size: 1.2rem;
    }

    .article-overlay {
        padding: 16px 10px;
    }

    .blog-cta-section {
        padding: 50px 16px;
    }
}