@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Roboto:wght@300;400;500&display=swap');

/* =========================================
   Reset & Base Styles - Minimalist Esports
   ========================================= */
:root {
    /* Colors */
    --bg-color: #f8f9fa; /* Light Gray/White base */
    --surface-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    
    /* Accents */
    --accent-blue: #0056b3;
    --accent-red: #d32f2f;
    --accent-black: #000000;
    
    /* UI Elements */
    --border-color: #e0e0e0;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.05);
    --hover-shadow: 0 8px 15px rgba(0,0,0,0.1);
    
    /* Fonts */
    --font-main: 'Roboto', sans-serif;
    --font-title: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Navbar - Clean & Technical
   ========================================= */
.navbar {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--accent-black);
    transition: 0.3s;
}

/* =========================================
   Ads - Minimalist Box
   ========================================= */
#adv1, #adv2, #adv3 {
    margin: 20px auto;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    max-width: 100%;
}

/* =========================================
   Main Content & Categories
   ========================================= */
.article-categories {
    padding: 2rem 0;
}

.category {
    margin-bottom: 3rem;
}

.category h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-black);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category h3::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: var(--border-color);
    margin-left: 15px;
}

/* =========================================
   Carousel & Grid
   ========================================= */
.carousel-container {
    position: relative;
    width: 100%;
}

.games-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 5px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

.games-grid::-webkit-scrollbar {
    display: none;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.carousel-btn.prev { left: -15px; }
.carousel-btn.next { right: -15px; }

/* =========================================
   Game Cards - Minimalist Esports
   ========================================= */
.game-card {
    flex: 0 0 300px; /* Fixed width for consistency */
    background: var(--surface-color);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
    box-shadow: var(--card-shadow);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* Hover Effect: Line Highlight & Lift */
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-blue);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-red);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s;
    z-index: 5;
}

.game-card:hover::before {
    transform: scaleY(1);
}

.card-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #eee;
}

.card-img-wrapper img,
.game-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

/* Support for detail pages where img is direct child */
.game-card > img {
    height: 180px;
}

.game-card:hover .card-img-wrapper img,
.game-card:hover > img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 86, 179, 0.1); /* Blue tint */
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.game-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid var(--border-color);
    position: relative;
    background: var(--surface-color);
    flex-grow: 1;
}

.game-card h4 {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

/* Small tech decoration */
.card-decoration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 2px;
    background: var(--border-color);
    transition: background 0.3s, width 0.3s;
}

.game-card:hover .card-decoration {
    background: var(--accent-blue);
    width: 40px;
}

/* =========================================
   Auxiliary Pages (About, Contact, Privacy)
   ========================================= */
.auxiliary-page {
    background: var(--surface-color);
    padding: 3rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.auxiliary-page h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-black);
    border-bottom: 2px solid var(--accent-blue);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.auxiliary-page h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.auxiliary-page p, .auxiliary-page li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.auxiliary-page ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.auxiliary-page a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.auxiliary-page a:hover {
    text-decoration: underline;
}

.contact-info {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-color);
    border-left: 4px solid var(--accent-red);
}

/* =========================================
   Detail Page Styles
   ========================================= */
.game-detail {
    padding: 2rem 0;
}

.game-detail-info {
    background: var(--surface-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.game-detail-info h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-black);
}

.game-detail-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 4px;
    overflow: hidden;
}

.game-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.game-detail-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Detail Page Button Override */
.play-button {
    background-color: var(--accent-blue) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 15px 40px !important;
    font-family: var(--font-title) !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 10px rgba(0,86,179,0.3) !important;
    transition: all 0.3s ease !important;
}

.play-button:hover {
    background-color: var(--accent-black) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2) !important;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar .container {
        position: relative;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--surface-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    /* Carousel Mobile */
    .carousel-btn {
        display: none; /* Hide arrows on mobile */
    }

    .games-grid {
        padding: 10px 0;
        gap: 15px;
    }

    .game-card {
        flex: 0 0 260px; /* Slightly smaller cards */
    }
    
    .auxiliary-page {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .game-card {
        flex: 0 0 85%; /* Single card taking most of width */
        margin-right: 10px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
}
