/* ==========================================================================
   IN9 GAME - Light Mode Core Stylesheet (Updated)
   Theme: Light Background with Dark Red Accents & Buttons
   ========================================================================== */

:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-accent: #fdf2f2;
    
    /* Dark Red Theme Palette */
    --primary: #8b0000;         /* Classic DarkRed */
    --primary-hover: #700000;   /* Deep Wine Red */
    --primary-light: #fee2e2;   /* Soft red background tint */
    --primary-border: #991b1b;  /* Border shade */
    
    --accent-green: #16a34a;
    --accent-green-bg: #dcfce7;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    --border-color: #e2e8f0;
    --border-subtle: #cbd5e1;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Baseline Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Accessible Skip Link */
.skip-link {
    position: absolute;
    top: -60px;
    left: 20px;
    background: var(--primary);
    color: var(--text-inverse);
    padding: 10px 18px;
    font-weight: 700;
    z-index: 10000;
    border-radius: 6px;
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 20px;
}

/* Google Material Icons Normalization */
.material-icons-outlined {
    font-size: 1.15rem;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Header & Sticky Navigation */
.site-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.brand-logo {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    width: 36px;
    height: 36px;
}

.brand-name {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--primary);
    white-space: nowrap;
}

/* Desktop Navigation (Inline, Non-Wrapping, Calibrated Font Size) */
.nav-menu {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem; /* Calibrated font-size to stay inline */
    font-weight: 600;
    padding: 6px 9px;
    border-radius: 6px;
    white-space: nowrap;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-item:hover {
    color: var(--primary);
    background-color: var(--bg-accent);
}

/* Dark Red Action Button */
.nav-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary);
    color: var(--text-inverse) !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.25);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.nav-btn-action:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.35);
}

/* Mobile Hamburger Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    transition: background-color var(--transition-fast);
}

.menu-toggle:hover {
    background-color: var(--bg-subtle);
}

.menu-toggle .bar {
    width: 22px;
    height: 2.5px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: all var(--transition-smooth);
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Main Structure */
.main-wrapper {
    max-width: 940px;
    margin: 2.5rem auto;
    padding: 0 1.25rem;
}

.content-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

/* Banner Hero Image */
.banner-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.hero-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Typography */
.entry-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.editorial-section h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--bg-subtle);
    padding-bottom: 8px;
}

.editorial-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
}

p {
    margin-bottom: 1.4rem;
    color: var(--text-secondary);
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1e293b;
    font-weight: 500;
}

strong {
    color: var(--text-primary);
}

/* Article Metadata Box */
.article-meta-box {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Dark Red Download CTA Container */
.cta-banner-box {
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 2.25rem 1.5rem;
    text-align: center;
    margin: 2.5rem 0;
}

.cta-inner h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
    justify-content: center;
    color: var(--primary);
}

/* Dark Red Action Button */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-inverse) !important;
    font-size: 1.12rem;
    font-weight: 800;
    padding: 15px 34px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(139, 0, 0, 0.35);
    transition: all var(--transition-smooth);
    margin: 1.25rem 0 0.85rem;
}

.action-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.45);
}

.badge-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;
}

.badge {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge .material-icons-outlined {
    font-size: 1rem;
    color: var(--accent-green);
}

.cta-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Table of Contents */
.toc-container {
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.toc-links {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.toc-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.toc-links a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* Specifications Table */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.styled-table th, .styled-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.styled-table th {
    background-color: var(--bg-subtle);
    color: var(--text-primary);
    font-weight: 700;
    width: 38%;
}

.styled-table td {
    color: var(--text-secondary);
}

.styled-table tbody tr:hover {
    background-color: #fffafa;
}

/* Feature Grid Cards */
.feature-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.75rem 0;
}

.feature-box {
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.feature-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.feature-icon-title .material-icons-outlined {
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 8px;
    border-radius: 8px;
}

.feature-box h3 {
    margin: 0;
    font-size: 1.1rem;
}

.feature-box p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Step Guides & Ordered Lists */
.step-guide {
    margin: 1.25rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.step-guide li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.step-guide.small {
    margin-left: 1.25rem;
}

.step-guide.small li {
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.styled-bullet-list {
    margin: 1.25rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.styled-bullet-list li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

/* Tip & Alert Boxes */
.info-alert {
    background-color: #fff5f5;
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #7f1d1d;
    font-size: 0.95rem;
}

.info-alert .material-icons-outlined {
    color: var(--primary);
    font-size: 1.5rem;
}

/* Two Column Layout */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card-column {
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

/* Tip Item Stack */
.tip-card-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
}

.tip-item .material-icons-outlined {
    background: var(--primary-light);
    color: var(--primary);
    padding: 10px;
    border-radius: 50%;
}

.tip-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.tip-item p {
    margin: 0;
    font-size: 0.92rem;
}

/* FAQ Accordions */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.5rem 0;
}

.faq-accordion {
    background-color: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-accordion summary {
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color var(--transition-fast);
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary:hover {
    background-color: var(--bg-subtle);
}

.expand-icon {
    transition: transform var(--transition-smooth);
}

.faq-accordion[open] .expand-icon {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Policy Subsections */
.policy-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
}

.policy-section h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
}

/* Footer Styling */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    margin-top: 5rem;
    text-align: center;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
}

.footer-links-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.footer-links-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--primary);
}

.footer-copy p {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sub-credit {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Navigation Drawer
   ========================================================================== */

@media (max-width: 980px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.is-open {
        max-height: 600px;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1.5rem;
        gap: 0.75rem;
    }

    .nav-item {
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 1rem;
        white-space: normal;
    }

    .nav-btn-action {
        justify-content: center;
        margin-top: 0.5rem;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

    .entry-title {
        font-size: 1.75rem;
    }

    .two-column-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .content-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .action-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .article-meta-box {
        flex-direction: column;
        gap: 8px;
    }
}