/* =========================================
   PlayCodes — Vertical Mission Cards CSS
   Dark Blue | Readable | Eye-catching | Modern
========================================= */

/* Root Colors */
:root {
    --primary-bg: #0b1d3a;       /* Dark Blue Background */
    --secondary-bg: #142850;     /* Card Background */
    --accent: #0ea5a4;           /* Accent for headings/buttons */
    --hover-accent: #00b4d8;     /* Hover accent */
    --text-color: #cdeceb;       /* Light text */
    --muted: #a0b2c1;             /* Muted description text */
    --pill-bg: #1f4f4f;           /* Pill background */
    --card-shadow: rgba(0,0,0,0.6);
}

/* =========================================
   Global Styles
========================================= */
body {
    font-family: 'Inter', system-ui, Arial, Helvetica, sans-serif;
    margin: 0;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--primary-bg);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--hover-accent);
}

/* =========================================
   Header & Navigation
========================================= */
.site-header {
    background: linear-gradient(90deg, var(--accent), #06b6d4);
    color: #fff;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}
.brand img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    padding: 5px;
    background: #fff;
}
.brand h1 { margin: 0; font-size: 22px; font-weight: 700; }
.small { font-size: 13px; color: #d1d1d1; }

.nav { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; transition: 0.3s; }
.nav a:hover { color: var(--hover-accent); }

.pill {
    background: var(--pill-bg);
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    max-width: 1100px;
    margin: 30px auto;
    padding: 30px;
    background: var(--secondary-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--card-shadow);
}
.hero h2 { color: var(--accent); margin-top: 0; }
.hero p { color: var(--text-color); }
.quick { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}
.btn:hover {
    background: var(--hover-accent);
    transform: translateY(-2px);
}

/* =========================================
   Vertical Mission Cards
========================================= */
.vertical-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 0;
}
.card {
    background: var(--secondary-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 30px var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--card-shadow);
}
.card h3 { margin: 8px 0; color: var(--accent); font-size: 20px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.card a.btn { margin-top: 12px; display: inline-block; }

/* Pills inside cards */
.card .pill {
    background: #1f4f4f;
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    margin-right: 6px;
}

/* =========================================
   Article Section
========================================= */
.article {
    background: var(--secondary-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 35px var(--card-shadow);
    color: #ffffff;
}
.article h2, .article h3, .article h4 { color: var(--accent); }
.article p, .article li { color: #d1d1d1; }
.article ol, .article ul { padding-left: 20px; }

/* Scrollable long article */
.article[style*="overflow-y:auto"] {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--secondary-bg);
}

/* Table of Contents */
.toc {
    background: #1b2a44;
    border-left: 4px solid var(--accent);
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.toc a {
    color: var(--text-color);
    text-decoration: none;
}
.toc a:hover { color: var(--hover-accent); }

/* Code Highlight */
code.k {
    background: #0f172a;
    color: #0ef7f6;
    padding: 4px 6px;
    border-radius: 6px;
    font-weight: 700;
}

/* =========================================
   Footer
========================================= */
footer {
    margin-top: 30px;
    padding: 30px 20px;
    background: var(--secondary-bg);
    color: #cdeceb;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
footer a {
    color: var(--accent);
    margin-right: 15px;
    text-decoration: none;
}
footer a:hover { color: var(--hover-accent); }

/* =========================================
   Responsive Media Queries
========================================= */
@media (max-width: 1024px) {
    .card { padding: 20px; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .card { padding: 18px; }
}
@media (max-width: 480px) {
    .site-header { flex-direction: column; align-items: flex-start; }
    .brand h1 { font-size: 18px; }
    .card { padding: 15px; }
    .btn { padding: 10px 16px; font-size: 14px; }
}
