/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #141b3d;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --accent-pink: #ff4d8d;
    --accent-orange: #ff6b35;
    --accent-yellow: #ffd700;
    --accent-blue: #4a90e2;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #ff4d8d 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #ffd700 50%, #ff6b35 100%);
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent-pink);
    padding: 20px;
    z-index: 10000;
    display: none;
    box-shadow: var(--shadow-lg);
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-content p {
    flex: 1;
    min-width: 250px;
    color: var(--text-primary);
}

.cookie-content a {
    color: var(--accent-pink);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-accept,
.btn-decline {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accept {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-decline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-pink);
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-decline:hover {
    background: var(--accent-pink);
}

/* Header */
.header {
    background: var(--bg-secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-desktop {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-pink);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-mobile.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-mobile .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-pink);
}

.btn-outline:hover {
    background: var(--accent-pink);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 77, 141, 0.2);
    border: 1px solid var(--accent-pink);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.badge-icon {
    font-size: 18px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 77, 141, 0.1);
    border: 1px solid rgba(255, 77, 141, 0.3);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    min-width: 150px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Games Section */
.games-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid var(--accent-yellow);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-yellow);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.game-card {
    background: rgba(255, 77, 141, 0.1);
    border: 1px solid rgba(255, 77, 141, 0.3);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-pink);
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.game-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.game-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 48px;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-stat {
    background: rgba(255, 77, 141, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--accent-pink);
    font-weight: 600;
}

.btn-game {
    width: 100%;
    margin-top: 10px;
}

/* Why Section */
.why-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 50px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.feature-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.why-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card-large {
    background: rgba(255, 77, 141, 0.1);
    border: 1px solid rgba(255, 77, 141, 0.3);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-card-large .stat-number {
    font-size: 48px;
}

.stat-card-large .stat-label {
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    font-weight: bold;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-pink);
}

#gameFrame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

/* Sign In Modal */
.signin-modal {
    max-width: 450px;
    height: auto;
    padding: 40px;
}

.signin-content {
    text-align: center;
}

.signin-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.signin-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 16px;
}

.signin-form {
    text-align: left;
}

.signin-form .form-group {
    margin-bottom: 20px;
}

.signin-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.signin-form input[type="email"],
.signin-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 77, 141, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.signin-form input[type="email"]:focus,
.signin-form input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-pink);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-link {
    color: var(--accent-pink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--accent-orange);
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.signin-footer {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.signup-link {
    color: var(--accent-pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-desktop,
    .header-buttons {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .nav-mobile {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .why-content {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-accept,
    .btn-decline {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .logo-text {
        font-size: 18px;
    }

    .stat-number {
        font-size: 28px;
    }

    .game-card {
        padding: 20px;
    }
}

