/* ============================================
   BLOG STYLES — Agendai Plus
   Design dark premium matching landing page
   ============================================ */

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --secondary: #06b6d4;
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --green: #25d366;
    --accent: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    background-image:
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.3) 0px, transparent 50%);
    background-attachment: scroll;
    overflow-x: hidden;
}

/* ============ NAVBAR ============ */
.blog-navbar {
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid var(--glass-border);
}

.blog-navbar .logo {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to right, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.blog-navbar .nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.blog-navbar .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.blog-navbar .nav-links a:hover {
    color: var(--text-light);
}

.blog-navbar .nav-links .btn-download {
    background: linear-gradient(135deg, var(--accent), var(--green));
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.3s;
}

.blog-navbar .nav-links .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    color: #fff;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
    max-width: 800px;
    margin: 1.5rem auto 0;
    padding: 0 5%;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--text-light);
}

.breadcrumb span {
    margin: 0 0.4rem;
    opacity: 0.5;
}

/* ============ BLOG INDEX PAGE ============ */
.blog-hero {
    text-align: center;
    padding: 3rem 5% 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero .hero-subtitle {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 1rem;
    text-align: center;
}

.blog-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 5%;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.4);
}

.blog-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(79, 70, 229, 0.15);
    color: #818cf8;
    flex-shrink: 0;
}

.blog-card .card-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
}

.blog-card .card-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: var(--secondary);
}

.blog-card .card-icon.yellow {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.blog-card .card-icon.pink {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.blog-card .card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
}

.blog-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.blog-card .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

/* ============ ARTICLE PAGE ============ */
.article-header {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 0 5%;
    text-align: center;
}

.article-header .article-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.12);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}

.article-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-header .article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-header .article-meta i {
    margin-right: 4px;
}

/* ============ ARTICLE BODY ============ */
.article-body {
    max-width: 800px;
    margin: 2.5rem auto;
    padding: 0 5%;
    line-height: 1.85;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.article-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--glass-border);
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 2rem 0 0.8rem;
}

.article-body p {
    margin-bottom: 1.2rem;
}

.article-body ul, .article-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
    margin-bottom: 0.6rem;
}

.article-body strong {
    color: var(--text-light);
    font-weight: 600;
}

.article-body a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    background: rgba(16, 185, 129, 0.08);
    padding: 1.2rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

/* ============ CTA BANNER (inside articles) ============ */
.article-cta {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(37, 211, 102, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 2.5rem 0;
}

.article-cta h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

.article-cta p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.article-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-cta .cta-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--green);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
}

.article-cta .cta-buttons a.badge-btn {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.article-cta .cta-buttons a.badge-btn:hover {
    transform: scale(1.05);
    box-shadow: none !important;
}

.article-cta .cta-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
}

.article-cta .cta-buttons a.apple {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.15);
}

.article-cta .cta-buttons a.apple:hover {
    box-shadow: 0 6px 24px rgba(255, 255, 255, 0.1);
}

/* ============ RELATED ARTICLES ============ */
.related-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 5%;
}

.related-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

/* ============ FOOTER ============ */
.blog-footer {
    text-align: center;
    padding: 3rem 5%;
    border-top: 1px solid var(--glass-border);
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-footer a {
    color: var(--secondary);
    text-decoration: none;
}

/* ============ SECTION DIVIDER ============ */
.section-divider {
    text-align: center;
    padding: 2.5rem 5% 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-divider h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.section-divider .divider-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .blog-navbar {
        padding: 1rem 4%;
    }

    .blog-navbar .nav-links {
        gap: 0.8rem;
    }

    .blog-navbar .nav-links a:not(.btn-download) {
        display: none;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 4%;
    }

    .article-header h1 {
        font-size: 1.7rem;
    }

    .article-body {
        font-size: 1rem;
        padding: 0 4%;
    }

    .article-body h2 {
        font-size: 1.35rem;
    }

    .article-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .article-cta .cta-buttons a {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }

    .breadcrumb {
        padding: 0 4%;
        font-size: 0.8rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.6rem;
    }

    .article-header h1 {
        font-size: 1.45rem;
    }

    .blog-card {
        padding: 1.5rem;
    }
}
