/* Global Styles */
:root {
    --primary-color: #ff6600;
    --secondary-color: #002e5c;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-radius: 6px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f0f2f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: inline-block;
    padding: 5px 0;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu li a {
    color: white;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.login-btn, .register-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
}

.login-btn {
    color: white;
    border: 1px solid white;
}

.register-btn {
    background-color: var(--primary-color);
    color: white;
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.register-btn:hover {
    background-color: #e05a00;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #004d99 100%);
    color: white;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.cta-btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.cta-btn.secondary {
    background-color: white;
    color: var(--secondary-color);
}

.cta-btn.primary:hover {
    background-color: #e05a00;
}

.cta-btn.secondary:hover {
    background-color: #f0f0f0;
}

/* Popular Games Section */
.popular-games {
    padding: 80px 0;
    background-color: white;
}

.popular-games h2, .categories h2, .faq h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-btn {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.play-btn:hover {
    background-color: #e05a00;
}

.game-card h3 {
    padding: 15px 20px 5px;
    font-size: 1.3rem;
}

.game-card p {
    padding: 0 20px 20px;
    color: var(--gray-color);
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: var(--light-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--gray-color);
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background-color: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.category-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    overflow: hidden;
    height: 180px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card h3 {
    padding: 15px 20px 5px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.category-card p {
    padding: 0 20px 20px;
    color: var(--gray-color);
}

/* Promotion Section */
.promotion {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff9900 100%);
    color: white;
    text-align: center;
}

.promo-content {
    max-width: 800px;
    margin: 0 auto;
}

.promotion h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.promotion p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.promotion .cta-btn.primary {
    background-color: white;
    color: var(--primary-color);
    padding: 15px 30px;
    font-size: 1.1rem;
}

.promotion .cta-btn.primary:hover {
    background-color: #f0f0f0;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--light-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.faq-item p {
    color: var(--gray-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo p {
    opacity: 0.8;
    margin-top: 10px;
}

.footer-nav h4, .footer-categories h4, .footer-payments h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-nav ul li, .footer-categories ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a, .footer-categories ul li a {
    opacity: 0.8;
}

.footer-nav ul li a:hover, .footer-categories ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: relative;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--secondary-color);
        padding: 20px;
        gap: 10px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .auth-buttons {
        display: none;
    }
    
    .games-grid, .feature-grid, .category-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .promotion h2 {
        font-size: 2rem;
    }
}
