:root {
    --primary-color: #00f3ff;
    /* Neon Cyan */
    --secondary-color: #bc13fe;
    /* Neon Purple */
    --background-dark: #0a0b10;
    --background-light: #14161f;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --transition: all 0.3s ease;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #000000;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 20px;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    box-shadow: -2px 0 10px rgba(255, 255, 255, 0.3), 2px 0 10px rgba(255, 255, 255, 0.3);
}

/* Header */
header {
    background-color: rgba(10, 11, 16, 0.95);
    background-image: url('../assets/gaming_background.png');
    background-repeat: repeat;
    background-size: 600px 600px;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ffffff;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    position: relative;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    transition: var(--transition);
}

nav a:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

nav a.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

nav a::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: 80vh;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0;
    /* Removed bottom margin, handled by container gap */
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sound-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.sound-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--text-muted);
    transition: var(--transition);
}

.sound-toggle:hover svg {
    fill: var(--primary-color);
}

.sound-toggle svg.is-hidden {
    display: none;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    height: 80vh;
    min-height: 600px;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: var(--background-light);
}

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* Slide Content */
.slide-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: transform 5s ease;
}

.carousel-slide:hover .slide-image {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 3rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slide-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    max-width: 800px;
}

.slide-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    width: fit-content;
    transition: var(--transition);
}

.read-more:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* Carousel Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.carousel-button svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.carousel-button--left {
    left: 20px;
}

.carousel-button--right {
    right: 20px;
}

.is-hidden {
    display: none;
}

/* Carousel Nav (Dots) */
.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-indicator {
    border: 0;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.current-slide {
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    transform: scale(1.2);
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile News List */
.mobile-news-list {
    display: none;
    /* Hidden on desktop */
}

.mobile-article-card {
    background: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-article-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 243, 255, 0.2);
}

.mobile-article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mobile-article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mobile-article-content {
    padding: 1rem;
}

.mobile-article-source {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.mobile-article-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.mobile-article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-container {
        display: none;
        /* Hide carousel on mobile */
    }

    .mobile-news-list {
        display: block;
        /* Show list on mobile */
    }

    .mobile-menu-btn {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-light);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 2px solid var(--primary-color);
    }

    nav ul.active {
        display: flex;
    }

    .carousel-container {
        height: 60vh;
        min-height: 400px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    /* Responsive overrides only */
    @media (max-width: 768px) {
        .mobile-menu-btn {
            display: flex;
        }

        nav ul {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: var(--background-light);
            flex-direction: column;
            padding: 1rem;
            gap: 1rem;
            border-bottom: 2px solid var(--primary-color);
        }

        nav ul.active {
            display: flex;
        }

        .carousel-container {
            height: 60vh;
            min-height: 400px;
        }

        .slide-title {
            font-size: 1.5rem;
        }

    }
}

/* Deals Page Styles */
.deals-section {
    padding: 2rem 0;
}

.deals-controls {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.results-count {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.game-search {
    width: 100%;
    padding: 0.75rem;
    background: var(--background-dark);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.game-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.game-search::placeholder {
    color: var(--text-muted);
}

.letter-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.letter-btn {
    background: var(--background-dark);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    min-width: 40px;
}

.letter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.letter-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.table-container {
    overflow-x: auto;
    background: var(--background-light);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 500px;
    /* Approx 10 rows */
    overflow-y: auto;
    position: relative;
    /* Custom Scrollbar for container */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-dark);
}

.deals-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Force scroll on very small screens */
}

.deals-table th,
.deals-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.deals-table th {
    background-color: rgba(10, 11, 16, 0.95);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.deals-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.deals-table th.sortable:hover {
    color: #ffffff;
    background-color: rgba(0, 243, 255, 0.1);
}

.deals-table th.sortable.sorted {
    color: #ffffff;
}

.sort-arrow {
    font-size: 0.9rem;
    margin-left: 4px;
}

.deals-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.game-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.platform .badge {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.platform .badge.steam {
    color: #66c0f4;
    background: rgba(102, 192, 244, 0.1);
}

.platform .badge.epic-games {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.platform .badge.gog {
    color: #a1cd44;
    background: rgba(161, 205, 68, 0.1);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
}

.sale-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.discount {
    color: var(--secondary-color);
    font-weight: 700;
}

.buy-btn {
    display: inline-block;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition);
}

.buy-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px var(--primary-color);
}