/* CyberG8 Blog Stylesheet */

:root {
    color-scheme: dark;
    --bg: #060b1a;
    --text: #eaf1ff;
    --muted: #9db0d6;
    --line: #233a66;
    --accent: #3b82f6;
    --accent-strong: #2563eb;
    --radius: 14px;
    --radius-sm: 8px;
    --nav-h: 68px;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(circle at 15% 10%, #122554 0%, var(--bg) 48%);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    width: min(1160px, 92%);
    margin-inline: auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    backdrop-filter: blur(14px) saturate(1.4);
    background: rgba(5,9,26,.82);
    border-bottom: 1px solid rgba(28,47,85,.75);
    animation: slideDownIn 0.3s ease-out;
}

@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand-logo { width: clamp(140px, 18vw, 210px); height: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-item { position: relative; }

.nav-dropdown { position: relative; }

.nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    height: .55rem;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: .4rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(8, 14, 34, .98);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
    display: none;
    flex-direction: column;
    gap: .15rem;
    z-index: 200;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: flex; }

.dropdown-link {
    padding: .5rem .62rem;
    border-radius: 6px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
    color: var(--text);
    background: rgba(255,255,255,.07);
    outline: none;
}

.nav-link {
    padding: .42rem .78rem;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 600;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-link.active { color: var(--text); }

.nav-cta { margin-left: .6rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .82rem 1.5rem;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .01em;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }

.btn-primary {
    background: #eb0060;
    border-color: #eb0060;
    color: #fff;
    box-shadow: 0 4px 18px rgba(235,0,96,.18);
}

.btn-primary:hover { box-shadow: 0 6px 24px rgba(235,0,96,.32); }

@media (max-width: 680px) {
    :root { --nav-h: 60px; }
    .nav-links { display: none; }
    .brand-logo { width: min(170px, 42vw); }
}

main {
    padding: 3rem 0;
    min-height: calc(100vh - var(--nav-h));
}

.article-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.article {
    max-width: 720px;
}

.article-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-title {
    display: block;
    max-width: 100%;
    font-size: clamp(1.85rem, 4.6vw, 2.85rem);
    font-weight: 700;
    line-height: 1.24;
    margin: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    hyphens: auto;
    text-wrap: balance;
}

.article-meta {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 900px) {
    .article-title {
        font-size: clamp(1.65rem, 7vw, 2.35rem);
        line-height: 1.24;
        margin-bottom: 0.75rem;
    }
}

.article-hook {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fca5a5;
    line-height: 1.5;
    margin: 2rem 0 2.5rem;
    padding: 1.5rem;
    border-left: 4px solid #eb0060;
    background: rgba(235, 0, 96, 0.08);
    border-radius: 0 8px 8px 0;
    animation: slideInLeft 0.5s ease-out 0.1s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.article-body p {
    margin: 0 0 1.3rem;
    color: var(--text);
}

.article-body strong {
    color: #60a5fa;
    font-weight: 700;
}

.article-section {
    margin: 2.5rem 0;
}

.article-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #93c5fd;
}

.three-questions {
    display: grid;
    gap: 1.2rem;
    margin: 1.8rem 0 2rem;
}

.question {
    padding: 1.2rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    transition: all var(--transition);
    animation: fadeInUp 0.5s ease-out;
}

.question:nth-child(1) { animation-delay: 0.2s; }
.question:nth-child(2) { animation-delay: 0.25s; }
.question:nth-child(3) { animation-delay: 0.3s; }

.question:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.15);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #060b1a;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 0.6rem;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e7ff;
}

.article-cta {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-align: center;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

.article-cta p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.article-cta .button {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    background: var(--accent);
    color: #eaf1ff;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
}

.article-cta .button:hover {
    background: var(--accent-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 3rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer a {
    color: var(--accent);
    transition: color var(--transition);
}

footer a:hover {
    color: #60a5fa;
}

/* Table of Contents Sidebar */

.toc-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
    height: fit-content;
    max-height: calc(100vh - var(--nav-h) - 2rem);
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: slideInLeft 0.5s ease-out 0.15s both;
}

.toc-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #60a5fa;
    margin: 0 0 1rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: block;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: var(--muted);
    border-left: 2px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
}

.toc-link:hover {
    color: var(--text);
    border-left-color: var(--accent);
    padding-left: 1rem;
}

.toc-link.active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
    padding-left: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    animation: highlightActive 0.3s ease-out;
}

@keyframes highlightActive {
    from {
        background: rgba(59, 130, 246, 0);
    }
    to {
        background: rgba(59, 130, 246, 0.1);
    }
}

@media (max-width: 1200px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }

    .toc-sidebar {
        display: none;
    }
}

.toc-sidebar::-webkit-scrollbar {
    width: 6px;
}

.toc-sidebar::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    transition: background var(--transition);
}

.toc-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* Additional animations for list items */

.article-body ul li {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.article-body ul li:nth-child(1) { animation-delay: 0.1s; }
.article-body ul li:nth-child(2) { animation-delay: 0.15s; }
.article-body ul li:nth-child(3) { animation-delay: 0.2s; }
.article-body ul li:nth-child(4) { animation-delay: 0.25s; }
.article-body ul li:nth-child(5) { animation-delay: 0.3s; }
.article-body ul li:nth-child(6) { animation-delay: 0.35s; }
.article-body ul li:nth-child(7) { animation-delay: 0.4s; }
.article-body ul li:nth-child(8) { animation-delay: 0.45s; }

/* Smooth transitions for section headings */

.article-section h2 {
    animation: fadeInUp 0.5s ease-out;
}

.article-section h3 {
    animation: fadeInUp 0.5s ease-out;
}



