/*
 * DA 88 Win Theme - Custom Styles
 * Version: 1.0.0
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

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

a {
    transition: all 0.3s ease;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #f1c40f;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo:hover {
    color: #f39c12;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-desktop li {
    position: relative;
}

.nav-desktop a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 15px;
    display: block;
    font-size: 15px;
}

.nav-desktop a:hover {
    color: #f1c40f;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-btn,
.register-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.login-btn {
    background: transparent;
    border: 2px solid #f1c40f;
    color: #f1c40f;
}

.login-btn:hover {
    background: #f1c40f;
    color: #1a1a2e;
    transform: translateY(-2px);
}

.register-btn {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #f1c40f;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #1a1a2e;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.nav-mobile.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-mobile li {
    margin: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px;
}

.nav-mobile a:hover {
    color: #f1c40f;
    padding-left: 20px;
}

.mobile-auth-buttons {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-auth-buttons .login-btn,
.mobile-auth-buttons .register-btn {
    width: 100%;
    margin-bottom: 10px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #f1c40f;
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.4);
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    background: #fff;
}

.content-section:nth-child(even) {
    background: #f8f9fa;
}

.content-section h2 {
    font-size: 36px;
    color: #1a1a2e;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.content-section h3 {
    font-size: 24px;
    color: #667eea;
    margin: 25px 0 15px;
}

.content-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
    font-size: 16px;
}

.content-section ul {
    margin: 20px 0;
    padding-left: 30px;
}

.content-section ul li {
    margin-bottom: 10px;
    position: relative;
}

.content-section ul li::marker {
    color: #667eea;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card-content {
    padding: 20px;
}

.game-card-content h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 20px;
}

.game-card-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-box:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-5px);
    border-color: #f1c40f;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.feature-box i {
    font-size: 48px;
    color: #f1c40f;
    margin-bottom: 20px;
    display: block;
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.feature-box:hover h3 {
    color: #fff;
}

.feature-box p {
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    color: #f1c40f;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #f1c40f;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section a:hover {
    color: #f1c40f;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: 14px;
}

/* Responsive Design - MOBILE */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .auth-buttons {
        display: none;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .content-section {
        padding: 30px 0;
    }

    .content-section h2 {
        font-size: 28px;
    }

    .content-section h3 {
        font-size: 20px;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .logo {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .content-section h2 {
        font-size: 24px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}
