/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Dark Casino Theme */
    --bg-primary: #0a0e27;
    --bg-secondary: #151932;
    --bg-card: #1e2339;
    --accent-gold: #ffd700;
    --accent-gold-hover: #ffed4e;
    --accent-purple: #7c3aed;
    --accent-purple-hover: #9333ea;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: #2d3748;
    --shadow-color: rgba(124, 58, 237, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1f3a 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
header {
    background: rgba(21, 25, 50, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-purple);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

nav a:hover {
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-bottom: 2px solid var(--border-color);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Game Cards Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.game-card:hover::before {
    opacity: 1;
}

.game-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.game-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--accent-gold);
}

.game-info p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ff8c00 100%);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #6d28d9 100%);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-purple-hover) 0%, var(--accent-purple) 100%);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.6);
}

.show-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    border-top: 2px solid var(--accent-purple);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.responsible-gaming {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.responsible-gaming img {
    width: 140px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.age-badge {
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    border: 3px solid #000;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: bottom 0.4s ease;
    border-top: 2px solid var(--accent-purple);
}

.cookie-banner.active {
    display: block;
    bottom: 0;
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    color: var(--text-secondary);
    flex: 1;
}

.cookie-content a {
    color: var(--accent-gold);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Policy Pages */
.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.policy-content h1 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.policy-content h2 {
    color: var(--accent-gold);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.policy-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.policy-content ul {
    color: var(--text-secondary);
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Game Page */
.game-page-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
}

.game-page-header h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.game-iframe-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.game-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-purple);
}

.game-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-details {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.game-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.game-section h2 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.game-section p, .game-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
}

.game-section ul {
    margin-left: 2rem;
}

.game-section li {
    margin-bottom: 0.5rem;
}

/* All Games Page */
.all-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger-menu span {
    width: 28px;
    height: 3px;
    background: var(--accent-gold);
    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);
}

/* Responsive Design */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .header-container {
        padding: 0 1.5rem;
    }

    nav {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        border-left: 2px solid var(--accent-purple);
    }

    nav.active {
        right: 0;
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    nav a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-buttons .btn {
        width: 100%;
    }
}

