/* ============ RESET & VARIABLES - STUDIO DARK THEME ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    background: #0B0D10;
    color: #E9EEF5;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(64,224,255,0.03) 0%, transparent 45%),
                radial-gradient(circle at 80% 70%, rgba(64,224,255,0.03) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ============ LIGHT MODE STYLES ============ */
body.light-mode {
    background: #F5F5F5;
    color: #1e1e1e;
}

body.light-mode .article-card, body.light-mode .header, body.light-mode .vibe-demo, body.light-mode .example-card, body.light-mode .mistake-card, body.light-mode .framework-item, body.light-mode .demo-card, body.light-mode .x-height-item, body.light-mode .checklist, body.light-mode .author-bio, body.light-mode .related-card, body.light-mode .tip-box, body.light-mode .warning-box, body.light-mode div[style*="background: #1E2630"] {
    background: #FFFFFF;
    color: #1e1e1e;
    border-color: #e0e0e0;
}

body.light-mode h2, body.light-mode h3, body.light-mode p, body.light-mode li,
body.light-mode .checklist-item span, body.light-mode .framework-item p,
body.light-mode .mistake-card h3, body.light-mode .example-card span {
    color: #1e1e1e;
}

body.light-mode h2 i, body.light-mode .meta-item i {
    color: #2563eb;
}

body.light-mode .back-link,
body.light-mode .toc-dropdown select {
    background: #FFFFFF;
    border-color: #e0e0e0;
    color: #1e1e1e;
}

body.light-mode .brand-name,
body.light-mode .author-name {
    color: #1e1e1e;
}

body.light-mode .header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: #e0e0e0;
}

body.light-mode .mobile-menu {
    background: #FFFFFF;
}

body.light-mode .mobile-nav-link {
    color: #1e1e1e;
}















/* ============ CSS VARIABLES ============ */
:root {
    --primary: #40E0FF;
    --primary-dark: #00B8D4;
    --primary-light: rgba(64,224,255,0.15);
    --primary-glow: rgba(64,224,255,0.25);
    --secondary: #40E0FF;
    --accent: #00B8D4;
    --warning: #FFB74D;
    --danger: #FF5252;
    --success: #4CAF50;
    --info: #40E0FF;
    --surface-0: #0B0D10;
    --surface-1: #151A21;
    --surface-2: #1E2630;
    --surface-3: #273140;
    --text-primary: #E9EEF5;
    --text-secondary: #C0C8D2;
    --text-tertiary: #9AA5B5;
    --text-muted: #8A99B0;
    --border: #273140;
    --border-strong: #3A4A60;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.6);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.7);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    --cyan-gradient: linear-gradient(135deg, #40E0FF, #00B8D4);
}

/* ============ PROGRESS BAR ============ */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--cyan-gradient);
    z-index: 2000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(64,224,255,0.5);
}

/* ============ SKIP TO CONTENT ============ */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--cyan-gradient);
    color: #0B0D10;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    z-index: 1001;
    transition: top 0.3s;
}
.skip-to-content:focus { top: 0; }

/* ============ TOAST NOTIFICATION ============ */
#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--cyan-gradient);
    color: #0B0D10;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    transition: transform 0.3s ease;
    max-width: 90%;
    white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ============ CONTAINER ============ */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 16px;
}
@media (min-width: 768px) { .container { margin: 40px auto; padding: 0 24px; } }

/* ============ HEADER STYLES ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11,13,16,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    width: 100%;
    transition: background-color 0.3s ease;
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.logo-icon {
    width: 36px; height: 36px;
    background: var(--cyan-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(64,224,255,0.3);
    transition: var(--transition);
}
.logo-link:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 0 25px rgba(64,224,255,0.5);
}
.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #E9EEF5;
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.brand-name span { color: #40E0FF; position: relative; }
.slogan-badge {
    display: none;
    background: rgba(64,224,255,0.1);
    color: #40E0FF;
    font-size: 0.6rem;
    padding: 4px 8px;
    border-radius: 30px;
    border: 1px solid var(--border);
    align-items: center;
    gap: 4px;
}
@media (min-width:480px) { .slogan-badge { display: inline-flex; } }

/* ============ DESKTOP NAVIGATION ============ */
.nav-desktop { display: none; }
@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 2px;
        margin: 0 auto;
        padding: 4px;
        background: rgba(21,26,33,0.6);
        border-radius: 60px;
        border: 1px solid var(--border);
        backdrop-filter: blur(8px);
    }
    .nav-link {
        color: #9AA5B5;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: 40px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        border: 1px solid transparent;
        transition: var(--transition);
    }
    .nav-link i { font-size: 0.75rem; color: #8A99B0; }
    .nav-link:hover {
        color: #40E0FF;
        background: rgba(64,224,255,0.1);
        border-color: rgba(64,224,255,0.2);
        transform: translateY(-1px);
    }
    .nav-link:hover i { color: #40E0FF; }
    .nav-link.active {
        background: var(--cyan-gradient);
        color: #0B0D10;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(64,224,255,0.3);
    }
    .nav-link.active i { color: #0B0D10; }
    .nav-dropdown { position: relative; }
    .dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: #151A21;
        border-radius: 16px;
        padding: 8px;
        min-width: 200px;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s;
        backdrop-filter: blur(12px);
    }
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        color: #9AA5B5;
        text-decoration: none;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    .dropdown-menu a i { width: 16px; color: #40E0FF; }
    .dropdown-menu a:hover {
        background: rgba(64,224,255,0.1);
        color: #40E0FF;
        transform: translateX(4px);
    }
    .dropdown-menu a.active {
        background: rgba(64,224,255,0.15);
        color: #40E0FF;
        font-weight: 600;
    }
    .new-badge {
        margin-left: auto;
        font-size: 0.55rem;
        background: #40E0FF;
        color: #0B0D10;
        padding: 2px 6px;
        border-radius: 10px;
    }
    .dropdown-group-title {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
        color: #40E0FF;
        padding: 8px 12px 4px;
        margin-top: 4px;
        border-bottom: 1px solid var(--border);
    }
    .dropdown-group-title:first-of-type { margin-top: 0; }
}

/* ============ ACTION BUTTONS ============ */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.guides-link {
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--cyan-gradient);
    color: #0B0D10;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    min-height: 40px;
    box-shadow: 0 4px 12px rgba(64,224,255,0.3);
    text-decoration: none;
}
.guides-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(64,224,255,0.4);
}
.guides-link .link-text { display: none; }
@media (min-width:768px) { .guides-link .link-text { display: inline; } }

/* ============ AUTH BUTTON STYLES ============ */
.auth-btn {
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #1E2630;
    border: 1px solid #273140;
    color: #E9EEF5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
    height: 44px;
}
.auth-btn i { font-size: 0.8rem; color: #40E0FF; }
.auth-btn:hover {
    background: var(--cyan-gradient);
    border-color: transparent;
    color: #0B0D10;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64,224,255,0.3);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #1E2630;
    border: 1px solid #273140;
    border-radius: 60px;
    padding: 3px 3px 3px 10px;
    transition: var(--transition);
    height: 44px;
}
.user-profile:hover {
    border-color: #40E0FF;
    background: rgba(64,224,255,0.1);
}
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--cyan-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-weight: 600;
    font-size: 0.9rem;
}
.sign-out-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #9AA5B5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.sign-out-btn:hover {
    color: #FF5252;
    transform: scale(1.1);
    background: rgba(255,82,82,0.1);
}

@media (max-width: 768px) {
    .auth-btn { padding: 6px 12px; height: 40px; font-size: 0.75rem; }
    .user-profile { padding: 2px 2px 2px 8px; height: 40px; }
    .user-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
    .sign-out-btn { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
    .auth-btn { padding: 6px 10px; height: 36px; font-size: 0.7rem; }
    .auth-btn span { display: none; }
    .auth-btn i { font-size: 0.9rem; margin: 0; }
    .user-profile { padding: 2px; height: 36px; }
    .user-avatar { width: 28px; height: 28px; font-size: 0.7rem; }
    .sign-out-btn { width: 36px; height: 36px; }
}

/* ============ KO-FI BUTTON ============ */
.kofi-link {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #1E2630;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
    text-decoration: none;
    flex-shrink: 0;
}
.kofi-link:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #40E0FF;
    background: var(--cyan-gradient);
    box-shadow: 0 5px 20px rgba(64,224,255,0.4);
}
.coffee-cup { position: relative; width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; }
.cup-body { position: relative; width: 16px; height: 14px; background: linear-gradient(135deg, #FFD700, #FFA500); border-radius: 0 0 8px 8px; animation: cupFill 2s infinite alternate; }
.cup-body::before { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 10px; background: linear-gradient(135deg, #FFE55C, #FFB347); border-radius: 0 0 6px 6px; opacity: 0.8; }
.cup-handle { position: absolute; top: 2px; right: -4px; width: 4px; height: 7px; border: 2px solid #FFD700; border-left: none; border-radius: 0 4px 4px 0; opacity: 0.8; }
.coffee-liquid { position: absolute; top: -2px; left: 2px; width: 12px; height: 3px; background: linear-gradient(90deg, #8B4513, #A0522D); border-radius: 2px; animation: liquidWave 2s infinite; }
.coffee-steam { position: absolute; top: -8px; left: 4px; display: flex; gap: 2px; opacity: 0; transition: opacity 0.3s; }
.kofi-link:hover .coffee-steam { opacity: 1; }
.coffee-steam span { width: 2px; height: 8px; background: linear-gradient(to top, rgba(255,255,255,0.8), transparent); border-radius: 1px; animation: steam 1.5s infinite; }
.kofi-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--cyan-gradient);
    color: #0B0D10;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
}
.kofi-link:hover .kofi-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
    transform: translateX(-50%) scale(1);
}
.kofi-link::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--cyan-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(10px);
}
.kofi-link:hover::after { opacity: 0.5; }

/* ============ MOBILE MENU ============ */
.mobile-menu-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #1E2630;
    border: 1px solid var(--border);
    display: none;
    align-items: center;
    justify-content: center;
    color: #40E0FF;
    transition: var(--transition);
    flex-shrink: 0;
    cursor: pointer;
}
.mobile-menu-btn i { font-size: 1rem; }
.mobile-menu-btn:hover {
    background: var(--cyan-gradient);
    color: #0B0D10;
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(64,224,255,0.3);
}
@media (max-width: 1024px) { .mobile-menu-btn { display: flex; } }

.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 300px;
    max-width: 85vw; height: 100vh;
    background: #151A21;
    z-index: 1001;
    transition: right 0.3s;
    padding: 80px 20px 20px;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.mobile-menu.active { right: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-menu-close {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #1E2630;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #40E0FF;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-menu-close:hover {
    background: var(--cyan-gradient);
    color: #0B0D10;
    transform: rotate(90deg);
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #9AA5B5;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: var(--transition);
    min-height: 48px;
}
.mobile-nav-link i { width: 20px; color: #40E0FF; }
.mobile-nav-link:hover {
    background: rgba(64,224,255,0.1);
    color: #40E0FF;
    transform: translateX(5px);
}
.mobile-nav-link.active {
    background: rgba(64,224,255,0.15);
    color: #40E0FF;
    font-weight: 600;
}
.mobile-menu-overlay {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index:1000;
    opacity:0;
    visibility:hidden;
    transition: var(--transition);
}
.mobile-menu-overlay.active { opacity:1; visibility:visible; }

/* ============ RESPONSIVE BREAKPOINTS ============ */
@media (min-width: 768px) {
    .header-container { padding: 10px 20px; }
    .logo-icon { width: 38px; height: 38px; font-size: 1.2rem; }
    .brand-name { font-size: 1.3rem; }
    .kofi-link, .mobile-menu-btn { width: 42px; height: 42px; }
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }
@media (max-width: 768px) {
    .header-container { padding: 10px 14px; }
    .brand-name { font-size: 1.1rem; }
    .logo-icon { width: 34px; height: 34px; font-size: 1rem; }
    .kofi-link, .mobile-menu-btn { width: 38px; height: 38px; }
}
@media (max-width: 480px) {
    .header-container { padding: 6px 10px; gap: 4px; }
    .logo-icon { width: 30px; height: 30px; font-size: 0.9rem; }
    .brand-name { font-size: 0.95rem; }
    .slogan-badge { display: none; }
    .kofi-link, .mobile-menu-btn { width: 34px; height: 34px; }
}
@supports (padding: max(0px)) {
    .header-container, .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* ============ BACK LINK ============ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #40E0FF;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #151A21;
    border-radius: 40px;
    border: 1px solid var(--border);
    transition: var(--transition);
    font-size: 0.85rem;
    width: fit-content;
}
.back-link:hover {
    background: rgba(64,224,255,0.1);
    transform: translateX(-4px);
    border-color: #40E0FF;
}

/* ============ TOC DROPDOWN ============ */
.toc-dropdown {
    margin-bottom: 24px;
    width: 100%;
}
.toc-dropdown select {
    width: 100%;
    padding: 14px 18px;
    background: #1E2630;
    border: 1px solid var(--border);
    border-radius: 40px;
    color: #E9EEF5;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2340E0FF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
}
.toc-dropdown select:focus {
    outline: none;
    border-color: #40E0FF;
}
.toc-dropdown select option {
    background: #151A21;
    color: #E9EEF5;
    padding: 10px;
}

/* ============ ARTICLE CARD ============ */
.article-card {
    background: #151A21;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 32px 24px;
    margin: 0 0 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    transition: background-color 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 768px) { .article-card { padding: 48px; } }

/* ============ TRUST BADGE ============ */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(64,224,255,0.1);
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid var(--border);
    font-size: 0.7rem;
    font-weight: 600;
    color: #40E0FF;
    margin-bottom: 24px;
}
@media (min-width: 768px) {
    .trust-badge { gap: 10px; padding: 8px 18px; font-size: 0.75rem; margin-bottom: 32px; }
}
.trust-badge i { color: #40E0FF; }

/* ============ ARTICLE TITLE ============ */
.article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: #E9EEF5;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
@media (min-width: 768px) { .article-title { font-size: 2.5rem; letter-spacing: -1px; margin-bottom: 24px; } }
@media (min-width: 1024px) { .article-title { font-size: 2.8rem; } }
.title-highlight {
    background: var(--cyan-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ ARTICLE META ============ */
.article-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) { .article-meta { flex-direction: row; align-items: center; gap: 24px; } }
.author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 44px; height: 44px;
    background: var(--cyan-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
@media (min-width: 768px) { .author-avatar { width: 48px; height: 48px; font-size: 1.1rem; } }
.author-info { display: flex; flex-direction: column; }
.author-name { font-weight: 700; color: #E9EEF5; font-size: 0.95rem; transition: color 0.3s ease; }
.author-title { font-size: 0.8rem; color: #9AA5B5; }
.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9AA5B5;
    font-size: 0.85rem;
}
.meta-item i { color: #40E0FF; width: 16px; }

/* ============ ARTICLE SUBTITLE ============ */
.article-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: #C0C8D2;
    margin-bottom: 30px;
    border-left: 4px solid #40E0FF;
    padding: 20px 24px;
    background: #1E2630;
    border-radius: var(--radius-lg);
    font-style: italic;
    transition: background-color 0.3s ease, color 0.3s ease;
}
@media (min-width: 768px) {
    .article-subtitle { font-size: 1.1rem; line-height: 1.8; margin-bottom: 40px; padding: 24px 28px; }
}
.article-subtitle i { color: #40E0FF; }

/* ============ HEADINGS ============ */
h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 48px 0 20px;
    color: #40E0FF;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
@media (min-width: 768px) {
    h2 { font-size: 1.8rem; margin: 56px 0 24px; gap: 16px; }
}
h2 i { color: #40E0FF; font-size: 1.5rem; }
h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #E9EEF5;
    transition: color 0.3s ease;
}
@media (min-width: 768px) { h3 { font-size: 1.3rem; margin: 36px 0 20px; } }

/* ============ PARAGRAPHS ============ */
p {
    margin-bottom: 1.2rem;
    color: #C0C8D2;
    font-size: 0.95rem;
    line-height: 1.7;
    transition: color 0.3s ease;
}
@media (min-width: 768px) {
    p { font-size: 1rem; margin-bottom: 1.4rem; line-height: 1.8; }
}
p strong { color: #40E0FF; }

/* ============ LISTS ============ */
ul, ol {
    margin: 20px 0 28px 24px;
    color: #C0C8D2;
}
@media (min-width: 768px) { ul, ol { margin: 24px 0 32px 28px; } }
li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}
@media (min-width: 768px) { li { font-size: 1rem; margin-bottom: 10px; } }
li strong { color: #40E0FF; }

/* ============ EXAMPLE CARD ============ */
.example-card {
    background: #1E2630;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
    transition: background-color 0.3s ease;
}
@media (min-width: 768px) { .example-card { padding: 32px; margin: 28px 0; } }
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--cyan-gradient);
    color: #0B0D10;
}

/* ============ MISTAKE CARD ============ */
.mistake-card {
    background: #1E2630;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 20px 0;
    border: 1px solid var(--border);
    border-left: 4px solid #FF5252;
    transition: background-color 0.3s ease;
}
@media (min-width: 768px) { .mistake-card { padding: 28px; margin: 24px 0; } }
.mistake-card h3 { margin-top: 0; margin-bottom: 12px; color: #E9EEF5; transition: color 0.3s ease; }

/* ============ FRAMEWORK GRID ============ */
.framework-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
}
@media (min-width: 640px) { .framework-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.framework-item {
    background: #1E2630;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}
.framework-item:hover {
    border-color: #40E0FF;
    transform: translateY(-4px);
}
.framework-item .emoji { font-size: 2.5rem; margin-bottom: 12px; }
.framework-item h4 { font-size: 1rem; font-weight: 600; color: #E9EEF5; margin-bottom: 8px; }
.framework-item p { font-size: 0.85rem; margin-bottom: 0; color: #9AA5B5; }

/* ============ DEMO BOX ============ */
.demo-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}
@media (min-width: 640px) { .demo-box { flex-direction: row; gap: 24px; margin: 28px 0; } }
.demo-card {
    flex: 1;
    background: #1E2630;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease;
}
@media (min-width: 768px) { .demo-card { padding: 28px; } }

/* ============ X-HEIGHT DEMO ============ */
.x-height-demo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
}
@media (min-width: 640px) { .x-height-demo { flex-direction: row; gap: 24px; margin: 28px 0; } }
.x-height-item {
    flex: 1;
    position: relative;
    padding: 16px;
    background: #1E2630;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: background-color 0.3s ease;
}
@media (min-width: 768px) { .x-height-item { padding: 20px; } }
.x-height-letter {
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}
@media (min-width: 768px) { .x-height-letter { font-size: 5rem; } }
.x-height-line {
    position: relative;
    height: 60px;
    margin: 10px 0;
    border-top: 2px dashed #40E0FF;
    border-bottom: 2px dashed #FF5252;
}
@media (min-width: 768px) { .x-height-line { height: 70px; } }
.x-height-line::before {
    content: 'x-height';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #151A21;
    padding: 4px 8px;
    font-size: 0.7rem;
    color: #40E0FF;
    border-radius: 20px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

/* ============ VIBE DEMO ============ */
.vibe-demo {
    background: #1E2630;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--border);
    transition: background-color 0.3s ease;
}
@media (min-width: 768px) { .vibe-demo { padding: 28px; margin: 28px 0; } }
.vibe-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.vibe-btn {
    padding: 10px 20px;
    background: #1E2630;
    border: 1px solid var(--border);
    border-radius: 40px;
    color: #9AA5B5;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}
.vibe-btn:hover {
    border-color: #40E0FF;
    color: #40E0FF;
}
.vibe-btn.active {
    background: var(--cyan-gradient);
    color: #0B0D10;
    border-color: transparent;
}
.vibe-preview {
    text-align: center;
    padding: 32px;
    background: #151A21;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: background-color 0.3s ease;
}
@media (min-width: 768px) { .vibe-preview { padding: 40px; } }
.vibe-headline {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: font-family 0.2s ease;
}
@media (min-width: 768px) { .vibe-headline { font-size: 2.5rem; } }
.vibe-subhead {
    font-size: 1rem;
    color: #9AA5B5;
    transition: font-family 0.2s ease;
}
@media (min-width: 768px) { .vibe-subhead { font-size: 1.1rem; } }

/* ============ TIP BOX ============ */
.tip-box {
    background: #1E2630;
    border-left: 4px solid #40E0FF;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    border: 1px solid var(--border);
    transition: background-color 0.3s ease;
}
@media (min-width: 768px) { .tip-box { padding: 28px; margin: 32px 0; } }
.tip-box i { color: #40E0FF; margin-right: 8px; }
.tip-box a { color: #40E0FF; font-weight: 600; text-decoration: none; }
.tip-box a:hover { text-decoration: underline; }

/* ============ WARNING BOX ============ */
.warning-box {
    background: rgba(255,82,82,0.1);
    border-left: 4px solid #FF5252;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    border: 1px solid var(--border);
    transition: background-color 0.3s ease;
}
@media (min-width: 768px) { .warning-box { padding: 28px; margin: 32px 0; } }
.warning-box i { color: #FF5252; margin-right: 8px; }
.warning-box a { color: #40E0FF; font-weight: 600; text-decoration: none; }
.warning-box a:hover { text-decoration: underline; }

/* ============ CHECKLIST ============ */
.checklist {
    background: #1E2630;
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    margin: 32px 0;
    border: 1px solid var(--border);
    transition: background-color 0.3s ease;
}
@media (min-width: 768px) { .checklist { padding: 40px; margin: 48px 0; } }
.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item i { color: #4CAF50; font-size: 1.1rem; flex-shrink: 0; }
.checklist-item span { font-size: 0.9rem; color: #C0C8D2; transition: color 0.3s ease; }
.checklist-item strong { color: #40E0FF; }

/* ============ AUTHOR BIO ============ */
.author-bio {
    background: #1E2630;
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--border);
    transition: background-color 0.3s ease;
}
@media (min-width: 640px) {
    .author-bio { flex-direction: row; gap: 32px; align-items: center; padding: 40px; margin-top: 48px; }
}
.author-avatar-large {
    width: 100px; height: 100px;
    background: var(--cyan-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-size: 2.5rem;
    font-weight: 700;
    flex-shrink: 0;
}
@media (min-width: 768px) { .author-avatar-large { width: 120px; height: 120px; font-size: 3rem; } }
.author-bio h3 { margin: 0 0 8px; color: #E9EEF5; transition: color 0.3s ease; }
.author-bio p { margin-bottom: 12px; color: #C0C8D2; transition: color 0.3s ease; }
.author-bio a { color: #40E0FF; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.author-bio a:hover { text-decoration: underline; }

/* ============ RELATED GUIDES ============ */
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
}
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.related-card {
    background: #1E2630;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}
.related-card:hover {
    border-color: #40E0FF;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.related-card h4 { color: #E9EEF5; margin-bottom: 8px; font-size: 1rem; font-weight: 700; transition: color 0.3s ease; }
.related-card p { color: #9AA5B5; font-size: 0.85rem; margin-bottom: 12px; line-height: 1.5; transition: color 0.3s ease; }
.related-card span { color: #40E0FF; font-size: 0.85rem; font-weight: 600; }

/* ============ NEWSLETTER SECTION ============ */






















/* ============ FOOTER STYLES ============ */











/* ============ TOUCH OPTIMIZATIONS ============ */
@media (max-width: 767px) {
    .nav-link-mobile, .kofi-link, .mobile-menu-btn, .guides-link, .vibe-btn, .back-link {
        min-height: 48px;
    }
}

/* ============ FOCUS INDICATORS ============ */
a:focus-visible, button:focus-visible {
    outline: 3px solid #40E0FF;
    outline-offset: 2px;
}

/* ============ HIGH CONTRAST MODE ============ */
@media (prefers-contrast: high) {
    :root {
        --primary: #00ffff;
        --primary-dark: #0080ff;
        --border: #ffffff;
    }
}

/* ============ HIDDEN SEO H1 ============ */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}


/* ---- article body + FAQ (new guides) ---- */
.article-card .article-body { font-size: 1.05rem; line-height: 1.7; }
.article-card .article-body h2 { scroll-margin-top: 96px; margin: 2.2em 0 .6em; font-size: 1.45rem; }
.article-card .article-body p { margin: 0 0 1.1em; }
.article-card .article-body ul, .article-card .article-body ol { margin: 0 0 1.4em 1.2em; }
.article-card .article-body li { margin-bottom: .45em; }
.article-card .article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-card .article-body pre { max-width: 100%; overflow-x: auto; background: rgba(17,24,39,.9); color: #E5E7EB; border-radius: 12px; padding: 16px; font-size: .9rem; line-height: 1.55; white-space: pre; }
.article-card .article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.article-card .faq-section { margin-top: 2.5em; }
.article-card .faq-section > h2 { margin-top: 0; }
.article-card .faq-item { border-top: 1px solid rgba(147,162,189,.35); padding: 14px 0; }
.article-card .faq-item summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.article-card .faq-item p { margin: 10px 0 0; }
.article-card { overflow-wrap: anywhere; }
.article-card img, .article-card svg { max-width: 100%; height: auto; }
@media (max-width: 480px) { .article-card .article-body { font-size: 1rem; } .article-card .article-title { font-size: clamp(1.5rem, 7vw, 2rem); } }

/* ---- phone reading size: body copy never below 16px ---- */
@media (max-width: 767px) {
  .article-card .article-body p, .article-card .article-body li, .article-card .faq-item p { font-size: 1rem; }
}

/* ---- footer badge rendered as a navigation button (this guide only) ---- */
.modern-footer a.footer-nav-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: linear-gradient(135deg, #0B6E83, #0A8299); color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: .9rem; box-shadow: 0 6px 16px rgba(10, 115, 136, .3); min-height: 44px; }
.modern-footer a.footer-nav-button i { color: #FFFFFF; }
.modern-footer a.footer-nav-button:hover { filter: brightness(1.08); }
.modern-footer a.footer-nav-button:focus-visible { outline: 3px solid #0A7388; outline-offset: 3px; }
