@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Enhanced Color Palette */
    --primary-600: #047857;
    --primary-500: #059669;
    --primary-400: #10b981;
    --primary-100: #d1fae5;
    --accent-500: #d97706;
    --accent-400: #f59e0b;
    --neutral-900: #1c1917;
    --neutral-50: #fafaf9;

    /* Existing Variables */
    --primary-green: #059669;
    --primary-green-light: #10b981;
    --accent-orange: #f59e0b;
    --accent-orange-light: #f97316;
    --text-black: #0A0A0A;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --background-white: #FFFFFF;
    --background-gray: #FAFAFA;
    --background-light: #F9FAFB;
    --border-light: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-black);
    background: var(--background-white);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.navbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-black);
    letter-spacing: -0.025em;
}

.navbar-menu {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-link:hover {
    color: var(--text-black);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-link.active {
    color: var(--text-black);
}

.navbar-btn {
    color: white !important;
    padding: 7px 16px !important;
    border-radius: 25px;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    transition: all 0.2s ease !important;
    text-decoration: none;
}
.navbar-btn::after { display: none !important; }
.navbar-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: white !important; }
.navbar-btn-login { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.navbar-btn-work {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 100%) !important;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.navbar-btn-work svg { transition: transform 0.25s ease; }
.navbar-dropdown.open .navbar-btn-work svg { transform: rotate(180deg); }
.navbar-dropdown { position: relative; }
.navbar-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--background-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}
.navbar-dropdown.open .navbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.navbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-black);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s;
}
.navbar-dropdown-item:hover { background: var(--background-gray); }
.navbar-dropdown-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.navbar-dropdown-item:first-child .navbar-dropdown-icon {
    background: rgba(217, 119, 6, 0.08);
    color: #d97706;
}
.navbar-dropdown-item:last-child .navbar-dropdown-icon {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
}
.navbar-cta-group:first-of-type { margin-left: 8px; padding-left: 16px; border-left: 1px solid #e5e7eb; }
.navbar-mobile-only { display: none; }

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-black);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        border-top: 1px solid var(--border-light);
        display: none;
        gap: 20px;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-title {
        font-size: 18px;
    }
}

/* Blog Container */
.blog-container {
    max-width: 900px;
    margin: 80px auto 0;
    padding: 40px 24px;
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-light) 100%);
    color: white;
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(var(--theme-shadow-rgb), 0.2);
}

.article-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.95;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Article Content */
.article-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-black);
    margin: 48px 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--theme-color);
    letter-spacing: -0.025em;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-black);
    margin: 36px 0 20px 0;
    letter-spacing: -0.025em;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-black);
    margin: 28px 0 16px 0;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.article-content strong {
    color: var(--text-black);
    font-weight: 600;
}

.article-content ul, .article-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.article-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.article-content blockquote {
    background: var(--background-light);
    border-left: 4px solid var(--theme-color);
    padding: 24px 32px;
    margin: 32px 0;
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text-gray);
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--theme-highlight-from) 0%, var(--theme-highlight-to) 100%);
    border: 2px solid var(--theme-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 32px 0;
}

.highlight-box h3 {
    color: var(--theme-highlight-heading);
    margin-top: 0;
}

.highlight-box p {
    margin-bottom: 0;
}

/* Example Box (used in positive-prompts) */
.example-box {
    background: var(--background-light);
    border-left: 4px solid var(--theme-color);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 28px 0;
}

.example-box h4 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--theme-color);
}

.example-box .negative {
    color: #dc2626;
    text-decoration: line-through;
    opacity: 0.7;
}

.example-box .positive {
    color: #059669;
    font-weight: 600;
}

/* Phase Box (used in terminator) */
.phase-box {
    background: var(--background-light);
    border-left: 4px solid var(--theme-color);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 28px 0;
}

.phase-box h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--theme-color);
}

/* TLDR Summary */
.article-tldr {
    background: var(--theme-bg-light);
    border-left: 4px solid var(--theme-color);
    padding: 20px 24px;
    margin-bottom: 32px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--border-light);
}

.tag {
    background: var(--background-light);
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--theme-color);
    color: white;
}

/* Share Section */
.share-section {
    background: var(--background-gray);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin: 40px 0;
    text-align: center;
}

.share-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-black);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-btn {
    background: white;
    color: var(--text-gray);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--theme-color);
    color: white;
}

/* Author Bio */
.author-bio {
    background: var(--background-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-top: 48px;
}

.author-bio h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-black);
}

.author-bio p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 16px;
}

/* Back to Blog */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 32px;
    transition: var(--transition);
}

.back-to-blog:hover {
    color: var(--text-black);
    gap: 12px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 80px;
    padding: 48px 24px;
    background: var(--background-gray);
    border-top: 1px solid var(--border-light);
}

.footer p {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .blog-container {
        padding: 20px 16px;
    }

    .article-header {
        padding: 40px 24px;
    }

    .article-content {
        padding: 24px 20px;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin: 32px 0 16px 0;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
    }

    .navbar-cta-group:first-of-type { margin-left: 0; padding-left: 0; border-left: none; }
    .navbar-mobile-only { display: list-item; }
    .navbar-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: auto;
        background: transparent;
    }
    .navbar-btn-work svg { display: none; }
    .navbar-dropdown.open .navbar-dropdown-menu { transform: none; }
}
