/* RESET & BASE STYLES */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent: #3b82f6; /* Professional Blue */
    --accent-hover: #2563eb;
    --nav-height: 70px;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    height: var(--nav-height);
    border-bottom: 1px solid #333;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links a:hover { color: var(--accent); }

.hamburger { display: none; cursor: pointer; }

/* HERO SECTION */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1f2937 0%, #121212 70%);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.cta-button {
    background-color: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}

.cta-button:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

/* CATEGORIES & CARDS (CORE) */
.categories-section {
    padding: 60px 0;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.category-block {
    margin-bottom: 50px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
}

.category-header h3 {
    font-size: 1.5rem;
    margin-left: 15px;
}

/* HORIZONTAL SCROLL CONTAINER */
.card-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 30px 5px; /* Bottom padding for scrollbar space */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
.card-slider::-webkit-scrollbar { height: 8px; }
.card-slider::-webkit-scrollbar-track { background: #1e1e1e; border-radius: 4px; }
.card-slider::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
.card-slider::-webkit-scrollbar-thumb:hover { background: #555; }

/* GAME CARD */
.game-card {
    min-width: 280px;
    max-width: 280px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    border: 1px solid #333;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #2a2a2a; /* Placeholder color */
}

.card-content {
    padding: 15px;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-platform {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* CONTENT SECTIONS (ADSENSE/SEO) */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.text-section {
    margin-bottom: 60px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid #333;
}

.text-section h2 { margin-bottom: 20px; color: var(--accent); }
.text-section p { margin-bottom: 15px; color: var(--text-secondary); }

/* FOOTER */
footer {
    background: #0a0a0a;
    padding: 50px 0;
    border-top: 1px solid #333;
    margin-top: 50px;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-links h4 { color: white; margin-bottom: 15px; }
.footer-links a { display: block; margin-bottom: 10px; color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: white; text-decoration: underline; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Add JS hamburger menu logic if needed, hiding for simplicity */
    .hero h1 { font-size: 2rem; }
    .game-card { min-width: 240px; }
    .footer-content { flex-direction: column; text-align: center; }
}

.deal-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
}

.free-until {
    display: block;
    color: #a0a0a0;
    margin-bottom: 2px;
    font-size: 0.75rem;
}

.countdown-timer {
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums; /* Keeps numbers from jumping */
}

.time-val {
    color: var(--accent); /* Uses your professional blue */
}
/* --- NEW BADGE STYLES --- */
.img-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.active-badge {
    background-color: #22c55e; /* Green */
    color: white;
}

.upcoming-badge {
    background-color: #f59e0b; /* Amber/Orange */
    color: black;
}

.expired-badge {
    background-color: #3f3f46; /* Grey */
    color: #a1a1aa;
}

/* Make expired cards look "inactive" */
.expired-card .card-image {
    filter: grayscale(100%);
    opacity: 0.6;
}

.expired-card:hover .card-image {
    filter: grayscale(0%); /* Color returns on hover */
    opacity: 1;
}

.sub-text {
    font-size: 0.8rem;
    color: #888;
}
/* --- PLATFORM HEADERS --- */
.platform-wrapper {
    margin-bottom: 40px;
    border-top: 1px solid #333; /* Separator line */
    padding-top: 20px;
}

.platform-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #888; /* Muted color for "Store" */
    text-transform: uppercase;
    letter-spacing: -1px;
    padding-left: 10px;
    border-left: 5px solid var(--accent); /* Blue accent line */
}

.category-subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 15px;
    margin-left: 15px;
    font-weight: 600;
}

.steam-badge {
    background-color: #171a21; /* Steam Blue-Black */
    color: #66c0f4;
    border: 1px solid #66c0f4;
}
/* ================================================================
   V5 UPGRADE - GLASSMORPHISM & NEON UI
================================================================ */

/* --- PLATFORM WRAPPERS --- */
.platform-wrapper {
    margin-bottom: 80px;
    position: relative;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Icons (CSS Shapes/Images) */
.platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}
.epic-icon { background: #333 url('https://upload.wikimedia.org/wikipedia/commons/3/31/Epic_Games_logo.svg') no-repeat center/60%; }
.steam-icon { background: #171a21 url('https://upload.wikimedia.org/wikipedia/commons/8/83/Steam_icon_logo.svg') no-repeat center/60%; }

/* --- CARD UPGRADES (GLASS EFFECT) --- */
.game-card.glass-effect {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2); /* Neon Glow */
}

/* Image Overlay Gradient */
.img-wrapper {
    position: relative;
    overflow: hidden;
}
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0.6;
}

/* Badges */
.badge {
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-size: 0.65rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}
.active-badge { background: rgba(34, 197, 94, 0.9); color: white; }
.upcoming-badge { background: rgba(245, 158, 11, 0.9); color: black; }
.expired-badge { background: rgba(63, 63, 70, 0.9); color: #ccc; }

/* Typography */
.category-subtitle {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}
.category-subtitle::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--accent);
}

.deal-info {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Loading Spinner */
.loader {
    border: 3px solid #333;
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Mobile Tweak */
@media (max-width: 768px) {
    .platform-header h2 { font-size: 1.8rem; }
    .game-card:hover { transform: none; }
}
/* --- AMAZON PRIME STYLES --- */
.amazon-icon { 
    background: #00A8E1 url('https://upload.wikimedia.org/wikipedia/commons/f/f1/Prime_Gaming_logo.svg') no-repeat center/80%; 
    background-color: white; /* Logo needs white background */
}

.prime-badge {
    background-color: #00A8E1; /* Prime Blue */
    color: white;
    border: none;
}
/* --- GOG & PLAYSTATION STYLES --- */
.gog-icon { 
    background: #5c2e91 url('https://upload.wikimedia.org/wikipedia/commons/2/2e/GOG.com_logo.svg') no-repeat center/80%; 
    background-color: white; 
}
.gog-badge { background-color: #7d35d6; color: white; }

.ps-icon { 
    background: #003791 url('https://upload.wikimedia.org/wikipedia/commons/4/4e/PlayStation_Plus_logo.svg') no-repeat center/80%; 
    background-color: white;
}
.ps-badge { background-color: #f5c518; color: black; font-weight: 800; }
/* --- EYE-CATCHING NOTIFY BUTTON --- */
#notify-btn {
    /* 1. Bright Gradient Background */
    background: linear-gradient(135deg, #ff416c, #ff4b2b); 
    color: white;
    
    /* 2. Professional Typography */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    
    /* 3. Shape & Size */
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    
    /* 4. Glowing Shadow */
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
    
    /* 5. Smooth Movement */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 10;
    
    /* 6. The "Heartbeat" Animation */
    animation: pulse-red 2s infinite;
}

#notify-btn:hover {
    /* Lift up and glow brighter on hover */
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 75, 43, 0.6);
    background: linear-gradient(135deg, #ff5e82, #ff6b4f); /* Lighter gradient */
}

#notify-btn:active {
    /* Click press effect */
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(255, 75, 43, 0.3);
}

/* The Pulse Animation Keyframes */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 75, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 75, 43, 0);
    }
}