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

:root {
    /* Color Palette */
    --primary-dark: #0a0f1c;
    --secondary-dark: #1a1f2e;
    --accent-gold: #d4af37;
    --accent-light-gold: #f4e7a3;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d1;
    --text-muted: #8792a3;
    --border-color: #2d3748;
    --gradient-primary: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e7a3 100%);
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);

    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 4rem 0;
    --container-padding: 0 2rem;
    --border-radius: 8px;
    --border-radius-large: 16px;
}

body {
    font-family: var(--font-secondary);
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Age Verification Banner */
.age-banner {
    background: var(--accent-gold);
    color: var(--primary-dark);
    text-align: center;
    padding: 0.5rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.age-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Header */
.header {
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 36px;
    z-index: 999;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.3);
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.2); }
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--secondary-dark);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(212, 175, 55, 0.02) 50%, transparent 51%);
    background-size: 100% 100%, 100% 100%, 20px 20px;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="60" font-size="30" text-anchor="middle" fill="rgba(212,175,55,0.05)">♠</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="60" font-size="30" text-anchor="middle" fill="rgba(212,175,55,0.05)">♦</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="60" font-size="30" text-anchor="middle" fill="rgba(212,175,55,0.03)">♣</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="60" font-size="30" text-anchor="middle" fill="rgba(212,175,55,0.03)">♥</text></svg>');
    background-size: 80px 80px, 120px 120px, 60px 60px, 100px 100px;
    background-position: 10% 20%, 90% 80%, 20% 80%, 80% 10%;
    animation: floatSuits 20s ease-in-out infinite;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

/* Floating Casino Elements */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-card {
    position: absolute;
    width: 40px;
    height: 60px;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(212,175,55,0.1));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(212, 175, 55, 0.6);
    animation: floatCard 15s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.floating-card:nth-child(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 25%;
    right: 8%;
    animation-delay: 3s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 10%;
    animation-delay: 6s;
}

.floating-card:nth-child(4) {
    bottom: 30%;
    right: 15%;
    animation-delay: 9s;
}

.floating-card:nth-child(5) {
    top: 50%;
    left: 2%;
    animation-delay: 12s;
}

.floating-card:nth-child(6) {
    top: 60%;
    right: 5%;
    animation-delay: 15s;
}

/* Luxury Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: sparkle 8s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; right: 20%; animation-delay: 1s; }
.particle:nth-child(3) { bottom: 40%; left: 15%; animation-delay: 2s; }
.particle:nth-child(4) { bottom: 25%; right: 10%; animation-delay: 3s; }
.particle:nth-child(5) { top: 60%; left: 25%; animation-delay: 4s; }
.particle:nth-child(6) { top: 40%; right: 30%; animation-delay: 5s; }
.particle:nth-child(7) { bottom: 60%; left: 35%; animation-delay: 6s; }
.particle:nth-child(8) { bottom: 35%; right: 25%; animation-delay: 7s; }

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    animation: titleGlow 6s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.age-disclaimer {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.age-disclaimer::before {
    content: "🔞";
    font-size: 1.2em;
}

/* Hero Animations */
@keyframes floatSuits {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}

@keyframes pulseGlow {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(2deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-5px) rotate(-1deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-25px) translateX(15px) rotate(1deg);
        opacity: 0.5;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 30px rgba(212, 175, 55, 0.3); }
    100% { text-shadow: 0 0 40px rgba(212, 175, 55, 0.5), 0 0 60px rgba(212, 175, 55, 0.2); }
}

/* Sections */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Features Section */
.features {
    background: var(--secondary-dark);
    padding: var(--section-padding);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
    border-color: var(--accent-gold);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.feature-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Showcase Section */
.showcase {
    padding: var(--section-padding);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-preview {
    background: var(--secondary-dark);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.game-preview:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dark);
    border-color: var(--accent-gold);
}

.game-image {
    height: 200px;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-placeholder {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--accent-gold);
    text-align: center;
}

.game-preview .btn {
    margin: 1.5rem;
    display: block;
    text-align: center;
}

.game-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    margin: 1.5rem 1.5rem 0.5rem;
    color: var(--text-primary);
}

.game-description {
    color: var(--text-secondary);
    margin: 0 1.5rem 1rem;
    font-size: 0.9rem;
}

.showcase-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Game Page Styles */
.game-hero {
    background: var(--gradient-primary);
    padding: 4rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.game-hero-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-container {
    padding: 3rem 0;
}

.game-iframe-wrapper {
    background: var(--secondary-dark);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--border-radius);
    background: #000;
}

.game-info {
    background: var(--secondary-dark);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.age-warning {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Games List Page */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.game-card {
    background: var(--secondary-dark);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
    border-color: var(--accent-gold);
}

.game-card-image {
    height: 180px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--accent-gold);
}

.game-card-content {
    padding: 1.5rem;
}

.game-card-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.game-card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.link-group h5 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.5rem;
}

.link-group a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.footer-disclaimer {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Policy Pages */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--secondary-dark);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    line-height: 1.8;
}

.policy-content h2 {
    font-family: var(--font-primary);
    color: var(--accent-gold);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-content h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.policy-content ul {
    color: var(--text-secondary);
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 0 1rem;
        --section-padding: 2rem 0;
    }

    .nav {
        padding: 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-dark);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-dark);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

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

    .feature-card {
        padding: 2rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .game-iframe {
        height: 400px;
    }

    .policy-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    /* Hero mobile adjustments */
    .floating-card {
        width: 30px;
        height: 45px;
        font-size: 1rem;
    }

    .hero-floating-elements .floating-card:nth-child(5),
    .hero-floating-elements .floating-card:nth-child(6) {
        display: none;
    }

    .hero-background::before {
        background-size: 60px 60px, 80px 80px, 40px 40px, 70px 70px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .game-iframe {
        height: 300px;
    }
}
