:root {
    /* --- LIGHT MODE VARIABLES (Default) --- */
    --primary: #2563eb;       /* Royal Blue */
    --primary-hover: #1d4ed8;
    
    --bg-body: #f1f5f9;       /* Slate 100 */
    --bg-card: #ffffff;       /* White */
    --bg-input: #ffffff;
    
    --text-main: #0f172a;     /* Slate 900 */
    --text-body: #334155;     /* Slate 700 */
    --text-muted: #64748b;    /* Slate 500 */
    
    --border: #cbd5e1;        /* Slate 300 */
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    
    /* Status Colors (Light) */
    --green: #16a34a;
    --green-bg: #dcfce7;
    --yellow: #ca8a04;
    --yellow-bg: #fef9c3;
    --red: #dc2626;
    --red-bg: #fee2e2;

    /* Spacing & Sizing */
    --radius: 8px;
    --input-height: 48px;
}

/* --- DARK MODE OVERRIDES (Automatic) --- */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #3b82f6;       /* Lighter Blue for contrast */
        --primary-hover: #60a5fa;

        --bg-body: #0f172a;       /* Slate 900 (Deep Blue/Black) */
        --bg-card: #1e293b;       /* Slate 800 */
        --bg-input: #0f172a;      /* Darker input background */

        --text-main: #f8fafc;     /* Slate 50 */
        --text-body: #cbd5e1;     /* Slate 300 */
        --text-muted: #94a3b8;    /* Slate 400 */

        --border: #334155;        /* Slate 700 */
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);

        /* Status Colors (Dark) */
        --green: #4ade80;         /* Brighter Green */
        --green-bg: #064e3b;      /* Dark Green BG */
        --yellow: #facc15;        /* Bright Yellow */
        --yellow-bg: #451a03;     /* Dark Brown/Orange BG */
        --red: #f87171;           /* Bright Red */
        --red-bg: #450a0a;        /* Dark Red BG */
    }
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    background-color: var(--bg-body);
    color: var(--text-body);
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth toggle */
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- HEADER --- */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 4px 0;
    transition: color 0.2s;
}



/* --- TYPOGRAPHY --- */
h1, h2, h3 { color: var(--text-main); }
p { color: var(--text-muted); }

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

/* --- TOOL CARD --- */
.tool-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.tool-card .form-group-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.form-group { margin-bottom: 0; }

label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

select {
    width: 100%;
    height: var(--input-height);
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-input); /* Adapts to dark mode */
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Dark Mode adjustment for the dropdown arrow icon */
@media (prefers-color-scheme: dark) {
    select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    }
}

/* Button */
.calc-btn {
    width: 100%;
    height: 52px;
    background: var(--primary);
    color: white; /* Always white text on button */
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s;
}
.calc-btn:hover { background: var(--primary-hover); }

/* --- RESULTS --- */
#result-section {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.result-card {
    background: var(--bg-card); /* Adapts to dark */
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left-width: 6px;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.green-border { border-left-color: var(--green); background: var(--green-bg); }
.yellow-border { border-left-color: var(--yellow); background: var(--yellow-bg); }
.red-border { border-left-color: var(--red); background: var(--red-bg); }

/* In dark mode, we don't want the full background to be colored, just subtle */
@media (prefers-color-scheme: dark) {
    .green-border { background: rgba(6, 78, 59, 0.3); }
    .yellow-border { background: rgba(69, 26, 3, 0.3); }
    .red-border { background: rgba(69, 10, 10, 0.3); }
}

.green-text { color: var(--green); }
.yellow-text { color: var(--yellow); }
.red-text { color: var(--red); }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.stat-box {
    background: var(--bg-body);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-box .value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.recommendation {
    background: var(--bg-body);
    padding: 16px;
    border-radius: var(--radius);
    margin-top: 16px;
}

.recommendation h4 { color: var(--text-main); font-size: 0.9rem; }
.recommendation p { color: var(--text-body); margin-bottom: 0; }

/* --- OTHER ELEMENTS --- */
.ad-slot {
    background: var(--bg-body);
    border: 2px dashed var(--border);
    color: var(--text-muted);
    border-radius: var(--radius);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
    text-transform: uppercase;
    font-size: 0.8rem;
}

details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

summary {
    padding: 16px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
}
summary:hover { background: var(--bg-body); }

details p {
    color: var(--text-body);
    border-top: 1px solid var(--border);
}

.buy-btn {
    background: #f59e0b;
    color: #000;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    margin-top: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-body);
}

th {
    background: var(--bg-body);
    color: var(--text-main);
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
    background: var(--bg-card);
    color: var(--text-muted);
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--primary); }

/* Mobile */
@media (max-width: 768px) {
    .tool-card .form-group-wrapper { grid-template-columns: 1fr; }
}

/* --- GAMES FPS LIST (New Section) --- */
.games-container {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
}

.games-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.games-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.game-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.95rem;
}

.game-row:not(:last-child) {
    border-bottom: 1px solid var(--border); /* Subtle separator */
    border-bottom-style: dashed;
}

.game-name {
    font-weight: 500;
    color: var(--text-main);
}

.game-fps {
    font-weight: 700;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1); /* Subtle badge bg */
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Dark mode adjustment for FPS badge */
@media (prefers-color-scheme: dark) {
    .game-fps {
        background: rgba(59, 130, 246, 0.2);
        color: #60a5fa;
    }
}

.disclaimer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
    opacity: 0.8;
    line-height: 1.4;
}

/* Desktop: 2 columns if space permits */
@media (min-width: 600px) {
    .games-list {
        grid-template-columns: 1fr 1fr;
        column-gap: 32px; /* Space between columns */
        row-gap: 8px;
    }
    .game-row:nth-last-child(2) {
        border-bottom: none; /* Remove border for 2nd last item in grid */
    }
}

/* --- RECOMMENDATION SECTION (New) --- */
.rec-container {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.rec-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    text-align: center;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.rec-card {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rec-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.rec-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.rec-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 2.5em; /* Alignment fix */
    display: flex;
    align-items: center;
    justify-content: center;
}

.rec-helper {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.rec-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.rec-btn:hover {
    background: var(--primary);
    color: #fff;
}

.rec-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
    opacity: 0.8;
}

/* Mobile: Stack cards */
@media (max-width: 768px) {
    .rec-grid {
        grid-template-columns: 1fr;
    }
    .rec-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 12px;
    }
    .rec-content {
        flex: 1;
        padding-right: 12px;
    }
    .rec-name {
        min-height: auto;
        justify-content: flex-start;
        margin-bottom: 4px;
    }
    .rec-helper {
        margin-bottom: 0;
        font-size: 0.75rem;
    }
    .rec-btn {
        width: auto;
        padding: 8px 16px;
        white-space: nowrap;
    }
    /* Hide type label on mobile to save space, or keep it small */
    .rec-type { display: none; }
}



/* --- TEXT PAGE STYLING (Privacy, About, Contact) --- */
.text-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 800px; /* Optimal reading width */
    margin: 0 auto;   /* Center it */
}

.text-content h1 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}

.text-content h2 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.text-content p {
    color: var(--text-body);
    margin-bottom: 1rem;
    line-height: 1.7; /* Better readability */
}

.text-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-body);
}

.text-content li {
    margin-bottom: 0.5rem;
}

.text-content a {
    color: var(--primary);
    text-decoration: underline;
}

.text-content a:hover {
    color: var(--primary-hover);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .text-content {
        padding: 20px;
    }
    .text-content h1 {
        font-size: 1.5rem;
    }
}

/* --- FAQ / SEO SECTION --- */
section h2 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.5rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Optional: small underline for the heading */
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

details:hover {
    border-color: var(--primary); /* Highlight on hover */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* The Clickable Header */
summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    list-style: none; /* Hides default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    user-select: none;
    transition: background 0.2s, color 0.2s;
}

summary:hover {
    background: rgba(37, 99, 235, 0.05); /* Subtle blue tint */
    color: var(--primary);
}

summary::-webkit-details-marker {
    display: none;
}

/* The Icon (Animated Plus/Minus) */
summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s;
    line-height: 1;
}

/* Open State Styling */
details[open] {
    border-color: var(--border); /* Keep border subtle when open */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Lift up slightly */
}

details[open] summary {
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

details[open] summary::after {
    content: '+'; /* Keep plus but rotate it */
    transform: rotate(45deg); /* Turns + into x smoothly */
    color: var(--primary);
}

/* The Content Text */
details p {
    padding: 20px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg-body); /* Slightly different bg for contrast */
    animation: slideDown 0.3s ease-out;
}

/* Simple slide animation */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dark Mode Tweaks */
@media (prefers-color-scheme: dark) {
    summary:hover {
        background: rgba(255, 255, 255, 0.05); /* White tint for dark mode */
    }
    details p {
        background: rgba(0,0,0,0.2); /* Darker inner content */
    }
}


/* --- BLOG POST STYLING --- */
.blog-article {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 800px; /* Optimal reading width */
    margin: 40px auto; /* Center on page */
}

/* Typography for Reading */
.blog-article h1 {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-main);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 32px;
    font-weight: 500;
}

/* Blog Content Flow */
.blog-content p {
    font-size: 1.05rem; /* Slightly larger for reading */
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 24px;
}

.blog-content h2 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-top: 48px;
    margin-bottom: 16px;
}

.blog-content h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-top: 32px;
    margin-bottom: 12px;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--text-body);
    line-height: 1.7;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-body);
    padding: 16px 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-main);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Embedded CTA Box */
.cta-box {
    background: var(--bg-body);
    border: 2px dashed var(--primary); /* Dashed border looks actionable */
    padding: 32px;
    border-radius: var(--radius);
    margin-top: 48px;
    text-align: center;
}

.cta-box h3 {
    margin-top: 0;
    color: var(--primary);
}

.cta-box .calc-btn {
    display: inline-block;
    width: auto;
    padding: 12px 32px;
    margin-top: 16px;
    text-decoration: none;
}

/* Breadcrumb Navigation */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.breadcrumb a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-main); }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .blog-article { padding: 24px; margin: 20px auto; }
    .blog-article h1 { font-size: 1.75rem; }
}

/* --- CALCULATOR UI --- */
.row-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- LOADER --- */
.loader-container {
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.5s;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-body);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- RESULT CARD COLORS --- */
.green-border { border-left: 5px solid #22c55e; }
.yellow-border { border-left: 5px solid #eab308; }
.red-border { border-left: 5px solid #ef4444; }

.green-text { color: #22c55e; }
.yellow-text { color: #eab308; }
.red-text { color: #ef4444; }

/* --- GAME FPS GRID --- */
.games-container {
    background: var(--bg-body);
    border-radius: var(--radius);
    padding: 16px;
    margin: 20px 0;
}
.games-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.games-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.game-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 4px 0;
    border-bottom: 1px dashed var(--border);
}
.game-fps {
    font-weight: 700;
    color: var(--primary);
}

/* --- AFFILIATE BUTTONS --- */
.affiliate-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}
.buy-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.buy-btn:hover {
    background: var(--primary);
    color: white;
}
.disclaimer-small {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .row-2-cols, .games-list, .affiliate-row {
        grid-template-columns: 1fr;
    }
}


:root {
    /* Premium Dark Theme Palette */
    --bg-body: #0f172a;       /* Slate 900 */
    --bg-card: #1e293b;       /* Slate 800 */
    --bg-input: #334155;      /* Slate 700 */
    --primary: #3b82f6;       /* Blue 500 */
    --primary-hover: #2563eb; /* Blue 600 */
    --accent: #8b5cf6;        /* Violet 500 */
    --text-main: #f8fafc;     /* Slate 50 */
    --text-muted: #94a3b8;    /* Slate 400 */
    --border: #334155;        /* Slate 700 */
    
    /* Semantic Colors */
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;

    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- LAYOUT UTILS --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.hidden { display: none !important; }

/* --- HEADER --- */

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-icon { color: var(--warning); }

/* Navigation */

.nav-link:hover, .nav-link.active { color: var(--primary); }

/* Mobile Menu Button */

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
}

/* --- ADSENSE --- */
.ad-slot {
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
    padding: 20px;
    margin: 30px 0;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ad-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* --- CALCULATOR CARD --- */
.tool-section { margin-top: 40px; }
.tool-header { text-align: center; margin-bottom: 30px; }
.tool-header h1 { font-size: 2rem; margin-bottom: 10px; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tool-header p { color: var(--text-muted); }

.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Select Styling */
.select-wrapper { position: relative; }
.select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    color: var(--text-muted);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
select:focus { outline: none; border-color: var(--primary); }

.primary-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.primary-btn:hover { background: var(--primary-hover); }
.primary-btn:active { transform: scale(0.98); }

/* --- RESULT SECTION --- */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.bottleneck-score {
    font-size: 2.5rem;
    font-weight: 800;
}
.result-title h3 { font-size: 1.2rem; margin-bottom: 5px; }
.result-title p { color: var(--text-muted); font-size: 0.9rem; }

/* FPS Grid */
.fps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.fps-item {
    background: rgba(0,0,0,0.2);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.game-name { font-size: 0.9rem; font-weight: 500; }
.game-val { color: var(--primary); font-weight: 700; }

/* 3-Button Affiliate Grid */
.affiliate-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}
.shop-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-align: center;
}
.shop-btn:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}
.shop-btn.monitor-btn {
    border-color: var(--accent);
    color: var(--accent);
}
.shop-btn.monitor-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

/* --- FOOTER --- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}
.footer-links { margin-bottom: 20px; }
.footer-links a { color: var(--text-muted); margin: 0 10px; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
.disclaimer { font-size: 0.8rem; color: #64748b; max-width: 600px; margin: 15px auto 0; }

/* --- FAQ --- */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
}
.faq-item summary {
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
.faq-item p { padding: 0 15px 15px; color: var(--text-muted); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    .main-nav.open { display: flex; }
    .tool-header h1 { font-size: 1.5rem; }
    .bottleneck-score { font-size: 2rem; }
    .result-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* --- ADVANCED TOGGLE --- */
.advanced-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--border);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    transition: background 0.2s;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}
.advanced-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
}
#arrow-icon {
    transition: transform 0.3s ease;
}

/* --- ADVANCED INPUT GRID --- */
.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- VISUAL PROGRESS BARS --- */
.bar-container {
    margin: 15px 0;
}
.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text-muted);
}
.progress-bg {
    background: var(--bg-body);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 5px;
    transition: width 1s ease-out;
}

/* --- POWER & PSU CARD --- */
.power-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}
.power-item {
    background: rgba(59, 130, 246, 0.1); /* Blue tint */
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
.power-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}
.power-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 5px;
}
.text-link-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    margin-top: 10px;
    width: 100%;
}

/* --- STORAGE WARNING --- */
.warning-box {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid var(--warning);
    color: #fde047;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- RESULT CARD HEADER --- */
.score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 800;
    border: 3px solid currentColor;
    flex-shrink: 0;
}

/* --- CONTENT SECTION STYLING --- */
.content-section {
    margin-top: 60px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}
.seo-article h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
}
.seo-article p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Concept Cards */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.concept-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 12px;
}
.concept-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}
.concept-card small {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Methodology Box */
.methodology-box {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--primary);
    padding: 25px;
    margin: 40px 0;
    border-radius: 0 12px 12px 0;
}
.methodology-box ul {
    margin: 15px 0 15px 20px;
    color: var(--text-muted);
}
.methodology-box li {
    margin-bottom: 8px;
}
.disclaimer-text {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.8;
}



/* --- COMPARISON PAGE STYLES --- */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
}
.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.winner-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    position: relative;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    text-align: center;
}
.versus-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-body);
    padding: 10px 15px;
    border-radius: 50%;
    font-weight: 900;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.score-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    margin-top: 10px;
}

.verdict-box {
    background: rgba(34, 197, 94, 0.1); /* Green tint */
    border: 1px solid var(--success);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 30px;
}
.verdict-box h3 { color: var(--success); margin-bottom: 5px; }

/* Table */
.spec-table-container { overflow-x: auto; }
.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}
.spec-table th, .spec-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.spec-table th { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.win-cell { color: var(--success); font-weight: 700; }

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}
.comp-link {
    display: block;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary);
    font-size: 0.9rem;
    text-align: center;
}
.comp-link:hover { border-color: var(--primary); }

@media (max-width: 768px) {
    .winner-banner { flex-direction: column; gap: 40px; }
    .versus-badge { top: 50%; } /* Keep centered */
}

/* --- BACK NAVIGATION BUTTON --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space between arrow and text */
    margin-bottom: 25px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px; /* Pill shape looks modern */
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Hover State */
.back-link:hover {
    background: var(--bg-input); /* Slightly lighter dark */
    border-color: var(--primary);
    color: var(--primary); /* Blue text */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); /* Blue glow */
}

/* Arrow Animation */
.back-link:hover::before {
    transform: translateX(-3px);
}



/* --- CONVERSION OPTIMIZED BUTTONS --- */
.shop-btn {
    position: relative; /* Needed for tooltip positioning */
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border: 1px solid var(--border);
    color: var(--text-main);
    /* ... keep your existing structure ... */
    transition: all 0.2s ease;
}

/* The "Green Glow" on Hover */
.shop-btn:hover {
    border-color: #22c55e;
    color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
    transform: translateY(-2px);
}

/* The "Discount" Tooltip */
.shop-btn:hover::after {
    content: "🔥 Check for Today's Discount";
    position: absolute;
    bottom: 110%; /* Sit above button */
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444; /* Red for urgency */
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    pointer-events: none;
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Tooltip Arrow */
.shop-btn:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #ef4444 transparent transparent transparent;
}

@keyframes popIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}


/* --- INTERACTIVE COMPARISON HEADERS --- */
.product-side {
    position: relative;
    cursor: pointer; /* specific change */
    transition: transform 0.2s, opacity 0.2s;
    border-radius: 8px;
    padding: 10px;
}

.product-side:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

/* Add a subtle "Edit" icon on hover */
.product-side:hover::after {
    content: '✏️ Change';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 1;
}

/* --- POWER CARD UPGRADE (High Visibility) --- */
.power-card-enhanced {
    background: linear-gradient(145deg, rgba(30, 41, 59, 1), rgba(15, 23, 42, 1));
    border: 1px solid #eab308; /* Yellow/Gold Border for Electricity */
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.15); /* Golden Glow */
}

.power-card-enhanced h3 {
    color: #facc15 !important; /* Bright Yellow Text */
    display: flex;
    align-items: center;
    gap: 8px;
}

/* PSU Button Specifics */
.psu-btn {
    margin-top: 15px;
    width: 100%;
    background: linear-gradient(to bottom, #ca8a04, #a16207); /* Gold Gradient */
    border-color: #facc15;
    color: white;
}
.psu-btn:hover {
    border-color: #fef08a;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
    color: white;
}
/* PSU Tooltip */
.psu-btn:hover::after {
    content: "⚡ Check Power Supply Prices";
    background: #eab308;
    color: #000; /* Black text on yellow is readable */
}


/* --- MOBILE MENU FIXES (Paste at bottom of style.css) --- */

/* 1. Make sure the button is visible on mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important; /* Force show */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001; /* Above everything */
    }

    /* 2. Color the lines White so they aren't invisible */
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #ffffff; /* FORCE WHITE */
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* 3. Style the Dropdown Menu */
    .main-nav {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%; /* Push below header */
        left: 0;
        right: 0;
        background-color: var(--bg-card); /* Dark background */
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    /* 4. The 'Open' State (Triggered by JS) */
    .main-nav.open {
        display: flex !important;
    }

    /* Link Spacing */
    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: center;
    }
}

/* Hide button on Desktop */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

/* ================= HEADER STYLES (UNIVERSAL FIX) ================= */

/* 1. Base Header Layout */
.site-header {
    background: rgba(15, 23, 42, 0.95); /* Dark Blue */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 9999; /* Always on top */
    padding: 15px 0;
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* 2. Logo */
.brand-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff; /* Force White */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10001; /* Above mobile menu */
}

/* 3. Desktop Navigation (Default) */
.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: #94a3b8; /* Slate 400 */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: #3b82f6; /* Blue 500 */
}

/* 4. Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none; /* Default hidden */
}

/* ================= MOBILE RESPONSIVENESS (Max Width 768px) ================= */
@media (max-width: 768px) {
    
    /* Show Hamburger Button */
    .mobile-menu-btn {
        display: flex; /* Visible on mobile */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10001; /* Above menu background */
    }

    /* The Three Lines */
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #ffffff; /* White lines */
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* Mobile Navigation Drawer */
    .main-nav {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%; /* Directly below header */
        left: 0;
        width: 100%;
        background-color: #1e293b; /* Solid Dark Color */
        border-bottom: 1px solid #334155;
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }

    /* The "OPEN" Class (Added by JS) */
    .main-nav.open {
        display: flex; /* Show when open */
    }

    /* Mobile Links Styling */
    .nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: #ffffff;
        text-align: center;
    }
}




/* --- ADVISORY LABELS --- */
.advisory-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 5px;
    border: 1px solid var(--border);
    color: var(--text-main);
}
.advisory-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    border-left: 3px solid var(--primary);
}

/* --- SMART SUGGESTIONS GRID --- */
.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}
.suggestion-card {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
    transition: transform 0.2s;
}
.suggestion-card:hover {
    transform: translateY(-3px);
}
.sugg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.sugg-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}
.sugg-benefit {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green);
    background: var(--green-bg);
    padding: 2px 8px;
    border-radius: 4px;
}
.suggestion-card h4 {
    margin: 0 0 5px 0;
    color: var(--text-main);
}
.suggestion-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.sugg-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.sugg-btn:hover {
    background: var(--primary);
    color: white;
}