/* Base Styles */
:root {
    --primary-color: #7c4dff;
    --secondary-color: #ff5252;
    --tertiary-color: #00c853;
    --dark-color: #212121;
    --light-color: #f5f5f5;
    --gray-color: #9e9e9e;
    --gradient-primary: linear-gradient(135deg, #7c4dff 0%, #ff5252 100%);
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Header Styles */
header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: 30px;
    padding: 8px 15px;
    width: 50%;
    max-width: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar:hover {
    box-shadow: var(--shadow);
}

.search-bar i {
    color: var(--primary-color);
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background: transparent;
    font-size: 1rem;
    width: 100%;
    outline: none;
    color: var(--dark-color);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 1.5rem;
}

.main-nav ul li a {
    font-weight: 500;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

.main-nav ul li a.active::after,
.main-nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero .btn {
    background: white;
    color: var(--primary-color);
}

.hero .btn:hover {
    background: var(--light-color);
}

/* Featured Games Slider */
.featured-games {
    padding: 5rem 0;
}

.game-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    scroll-behavior: smooth;
}

.game-slider::-webkit-scrollbar {
    height: 8px;
}

.game-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.game-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.slider-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.slider-item:hover {
    transform: translateY(-10px);
}

.slider-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.slider-content {
    padding: 1.5rem;
    background: white;
}

.slider-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.game-category {
    display: inline-block;
    font-size: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.game-rating {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.game-rating i {
    color: gold;
    margin-right: 5px;
}

/* Categories Section */
.categories {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.category-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.category-title {
    font-weight: 600;
}

/* Games Grid */
.popular-games,
.new-games {
    padding: 5rem 0;
}

.new-games {
    background-color: #f9f9f9;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.game-thumb {
    height: 180px;
    overflow: hidden;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-thumb img {
    transform: scale(1.1);
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.game-download {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Search Page */
.search-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 2000;
    padding: 1rem 0;
    overflow-y: auto;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.search-header .back-btn {
    margin-right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.search-input {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: 30px;
    padding: 10px 15px;
    width: 100%;
}

.search-input i {
    color: var(--primary-color);
    margin-right: 10px;
}

.search-input input {
    border: none;
    background: transparent;
    font-size: 1rem;
    width: 100%;
    outline: none;
    color: var(--dark-color);
}

.search-results {
    margin-top: 2rem;
}

.result-count {
    margin-bottom: 1rem;
    font-weight: 500;
}

.search-page.active {
    display: block;
}

.foot{
    text-align: center;
    font-size: 12px;
    color: #fff;
    line-height: 13px;
    margin-left: 4px;
    margin-bottom: 20px;
  }

/* Media Queries */
@media (max-width: 992px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .slider-item {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
        order: 3;
    }
    
    .logo {
        order: 1;
    }
    
    .search-bar {
        order: 2;
        width: 70%;
    }
    
    .main-nav {
        order: 4;
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .main-nav.active {
        height: auto;
        margin-top: 1rem;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li {
        margin: 0;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--light-color);
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .slider-item {
        flex: 0 0 220px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        width: 50%;
    }
} 