@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Inter:wght@400;600;700&display=swap');

:root {
    /* DEFAULT: NIGHT MODE (High-End Brutalism) */
    --bg-base: #050505;
    --card-glass: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-border-top: rgba(255, 255, 255, 0.2);
    --fg: #fafafa;
    --muted: #a1a1aa;
    --accent-1: #ccff00; /* Acid Green */
    --accent-2: #ffffff;
    --accent-3: #ccff00;
    --title-grad: #fafafa;
    --card-shadow: none; /* No shadow, flat brutalism */
    --card-hover-bg: rgba(255, 255, 255, 0.05);
    --glow-color: rgba(204, 255, 0, 0.15);
    --img-bg: #111111;
    --btn-bg: #fafafa;
    --btn-border: #fafafa;
    --btn-text: #050505;
    --btn-hover-text: #050505;
    --sys-bg: rgba(204, 255, 0, 0.1);
    --sys-border: rgba(204, 255, 0, 0.3);
    --tag-bg: rgba(255, 255, 255, 0.05);
    --tag-border: rgba(255, 255, 255, 0.15);
    --divider: rgba(255, 255, 255, 0.1);
    --bg-image: none;
    color-scheme: dark;
}

html.theme-light {
    /* DAY MODE (Editorial / Hermès Style) */
    --bg-base: #f4f4f5;
    --card-glass: #ffffff;
    --card-border: rgba(0, 0, 0, 0.15);
    --card-border-top: rgba(0, 0, 0, 0.25);
    --fg: #050505;
    --muted: #71717a;
    --accent-1: #ff3300; /* Safety Orange */
    --accent-2: #050505;
    --accent-3: #ff3300;
    --title-grad: #050505;
    --card-shadow: none;
    --card-hover-bg: #fdfdfd;
    --glow-color: rgba(255, 51, 0, 0.15);
    --img-bg: #e4e4e7;
    --btn-bg: #050505;
    --btn-border: #050505;
    --btn-text: #ffffff;
    --btn-hover-text: #ffffff;
    --sys-bg: rgba(255, 51, 0, 0.08);
    --sys-border: rgba(255, 51, 0, 0.2);
    --tag-bg: rgba(0, 0, 0, 0.04);
    --tag-border: rgba(0, 0, 0, 0.15);
    --divider: rgba(0, 0, 0, 0.1);
    --bg-image: none;
    color-scheme: light;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: var(--bg-image);
    background-attachment: fixed;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ---------------- Top Navigation ---------------- */
.top-nav {
    width: 100%;
    background: var(--accent-1);
    border-bottom: none;
    height: 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.4);
}

.nav-left {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #333;
}

.site-nav {
    display: flex;
    gap: 25px;
}

.site-nav a {
    color: #000;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: opacity 0.2s;
    letter-spacing: -0.5px;
}

.site-nav a:hover {
    opacity: 0.6;
}

.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 20px;
}

/* ---------------- Affiliate Banner (Integrated) ---------------- */
.affiliate-banner {
    justify-self: center;
    background: transparent;
    color: #000;
    padding: 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
}

#banner-text {
    margin-right: 15px;
    vertical-align: middle;
}

.banner-btn {
    display: inline-block;
    vertical-align: middle;
    background: #000;
    color: var(--accent-1);
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    font-size: 0.85rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@media (max-width: 800px) {
    .hide-mobile {
        display: none !important;
    }
    .affiliate-banner {
        padding: 10px 15px;
    }
}

/* ---------------- Brand Header ---------------- */
.brand-header {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.sys-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.70rem;
    color: #000;
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    gap: 6px;
    padding: 0 12px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0px;
}

.sys-dot {
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.control-btn {
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.2);
    color: #000;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s;
    border-radius: 4px;
    padding: 0;
}

.control-btn:hover {
    background: #000;
    color: var(--accent-1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

html.theme-light .moon-icon { display: none; }
html.theme-light .sun-icon { display: block !important; }

.brand-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--title-grad);
    text-transform: uppercase;
}

.total-value-box {
    background: var(--bg-base);
    border: 2px solid var(--card-border);
    border-radius: 0;
    padding: 8px 20px;
    display: flex;
    align-items: center;
}

.total-value-box #val-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

.total-value-box strong {
    font-family: 'Space Mono', monospace;
    color: var(--accent-1);
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 8px;
}

/* ---------------- Hero Carousel (Epic Games Style) ---------------- */
.hero-carousel {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.featured-card {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.f-image-wrapper {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.f-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-card:hover .f-img {
    transform: scale(1.02);
}

.f-content {
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
    margin-top: -30px;
    border-radius: 16px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}

html.theme-light .f-content {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .featured-card {
        display: block;
    }
    
    .f-content {
        position: absolute;
        bottom: 40px;
        left: 40px;
        width: calc(100% - 80px);
        max-width: 600px;
        margin-top: 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
}

.f-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: var(--title-grad);
    display: flex;
    align-items: center;
    scroll-margin-top: 80px;
}

.badge-primary {
    background: var(--accent-1);
    color: #000;
}

.badge-outline {
    background: rgba(204, 255, 0, 0.1);
    color: var(--accent-1);
    border-color: var(--accent-1);
}

html.theme-light .badge-outline {
    background: rgba(255, 51, 0, 0.1);
}

.f-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--fg);
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.f-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 24px;
    max-width: 600px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.f-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.f-price-old {
    font-size: 1rem;
    color: var(--muted);
    text-decoration: line-through;
}

.f-price-new {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-1);
}

.f-urgency-tag {
    font-size: 0.9rem;
    color: var(--accent-2);
    font-weight: 700;
    background: rgba(255, 0, 60, 0.1);
    padding: 4px 12px;
    border-radius: 0;
    border: 1px solid rgba(255, 0, 60, 0.2);
}

.btn-claim-large {
    background: var(--fg);
    color: var(--bg-base);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    transition: transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--fg);
    box-shadow: 4px 4px 0 var(--btn-border);
}

.btn-claim-large:hover {
    background: var(--accent-1);
    color: #000;
    border-color: #000;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.btn-claim-large:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #000;
}

/* ---------------- Bento Grid ---------------- */
.container {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-base);
    border: 2px solid var(--card-border);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.card:hover {
    background: var(--card-hover-bg);
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.15);
    border-color: var(--accent-1);
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: var(--img-bg);
}

.card-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    padding: 20px;
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

html.theme-light .card-tooltip {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.card:hover .card-tooltip {
    opacity: 1;
    visibility: visible;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-1);
    color: var(--bg-base);
    padding: 6px 12px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.plat-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    padding: 4px 10px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    color: var(--fg);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.5;
    flex-grow: 1;
}

.card-meta-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: auto;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.65rem;
    color: var(--fg);
    font-weight: 600;
    display: flex;
    align-items: center;
}

html.theme-light .meta-tag {
    background: rgba(0, 0, 0, 0.05);
}

.store-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    transform: translateY(2px);
}

html.theme-light .store-icon {
    filter: invert(1);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.price {
    display: flex;
    flex-direction: column;
}

.price-old {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: line-through;
    min-height: 1.2em;
    display: block;
}

.price-new {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-1);
}

.urgency-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-2);
    font-weight: 600;
    margin-top: 2px;
}

.btn-claim {
    background: var(--btn-bg);
    border: 2px solid var(--btn-border);
    color: var(--btn-text);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    transition: transform 0.1s;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 var(--btn-border);
}

.btn-claim:hover {
    background: var(--accent-1);
    border-color: var(--btn-border);
    color: var(--bg-base);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--btn-border);
}

.btn-claim:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--btn-border);
}

/* ---------------- Loader ---------------- */
.loader {
    padding: 100px 20px;
    color: var(--accent-1);
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    grid-column: 1 / -1;
    text-align: center;
    letter-spacing: 2px;
    animation: pulse-loader 1.5s infinite;
}

@keyframes pulse-loader {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 10px var(--accent-1); }
}

@media (max-width: 1024px) {
    /* Auto-fill takes care of standard cards */
}

@media (max-width: 768px) {
    .brand-header { flex-direction: column; gap: 16px; margin-top: 20px; }
    .brand-header h1 { font-size: 1.8rem; }
    .f-title { font-size: 2.2rem; }
    .f-content { padding: 20px; border-top: 2px solid var(--card-border); }
    .featured-card { height: auto; }
}

.section-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 20px; color: var(--fg); text-transform: uppercase; letter-spacing: -1px; border-bottom: 1px solid var(--card-border); padding-bottom: 10px; }
/* --- Footer Styles --- */
.site-footer {
    margin-top: 100px;
    padding: 60px 0 40px;
    background-color: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #fff, var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 30px 0;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-1);
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    width: 100%;
}

.footer-disclaimer p {
    margin: 5px 0;
}
