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

:root {
    --primary-color: #2C5F2D;
    --secondary-color: #8B4513;
    --accent-color: #4A90A4;
    --light-bg: #F5F1E8;
    --dark-text: #1A1A1A;
    --light-text: #666;
    --white: #FFFFFF;
    --success: #97BE5A;
    --warning: #E8B44F;
    --error: #C94C4C;
    --overlay: rgba(0, 0, 0, 0.7);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

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

/* Age Verification Modal */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.age-verification .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 30px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.age-verification .modal-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.age-verification .modal-body {
    padding: 30px;
}

.age-verification .modal-body p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.age-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
}

.age-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.age-checkbox label {
    cursor: pointer;
    font-weight: 500;
}

.modal-footer {
    padding: 0 30px 30px;
    display: flex;
    gap: 15px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-text);
    color: var(--white);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
}

.wave1 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 Q300,120 600,60 T1200,60 L1200,120 L0,120 Z' fill='rgba(245,241,232,0.3)'/%3E%3C/svg%3E");
    animation: wave 15s linear infinite;
}

.wave2 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,80 Q300,20 600,80 T1200,80 L1200,120 L0,120 Z' fill='rgba(245,241,232,0.5)'/%3E%3C/svg%3E");
    animation: wave 10s linear infinite reverse;
}

.wave3 {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,40 Q300,100 600,40 T1200,40 L1200,120 L0,120 Z' fill='rgba(245,241,232,1)'/%3E%3C/svg%3E");
    animation: wave 20s linear infinite;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #6B3410;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

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

.btn-secondary:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-game {
    background: var(--primary-color);
    color: var(--white);
    width: 100%;
    margin-top: 15px;
}

.btn-game:hover {
    background: #1F4521;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 95, 45, 0.3);
}

/* Games Section */
.games-section {
    padding: 80px 20px;
}

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

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.game-card:nth-child(1) .game-icon {
    animation-delay: 0s;
}

.game-card:nth-child(2) .game-icon {
    animation-delay: 0.3s;
}

.game-card:nth-child(3) .game-icon {
    animation-delay: 0.6s;
}

.game-card h3 {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.game-card p {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--light-bg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.7;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #FFF8E7, #FFE4B5);
}

.disclaimer-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    border-left: 6px solid var(--warning);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.disclaimer-box h3 {
    font-size: 1.6rem;
    color: var(--dark-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.disclaimer-box p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--light-text);
}

.disclaimer-box strong {
    color: var(--dark-text);
}

.disclaimer-box a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 60px 20px 30px;
}

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

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.footer-disclaimer p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.help-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.help-links a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.help-links a:hover {
    color: var(--success);
}

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

.footer-contact {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--light-bg);
    }

    .nav-menu a {
        display: block;
        padding: 20px;
    }

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

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

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

    .modal-footer {
        flex-direction: column;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

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

/* Game Pages Common Styles */
.game-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.game-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--light-bg);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    min-width: 120px;
}

.stat-label {
    display: block;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--light-bg);
    padding: 15px 25px;
    border-radius: 50px;
}

.bet-controls span {
    font-size: 1.1rem;
    color: var(--dark-text);
    min-width: 100px;
    text-align: center;
}

.bet-controls strong {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.game-message {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-message.success {
    background: rgba(151, 190, 90, 0.2);
    color: var(--success);
}

.game-message.error {
    background: rgba(201, 76, 76, 0.2);
    color: var(--error);
}

.game-message.info {
    background: rgba(74, 144, 164, 0.2);
    color: var(--accent-color);
}

.paytable {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.paytable h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.paytable table {
    width: 100%;
    border-collapse: collapse;
}

.paytable td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.paytable td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.paytable tr:last-child td {
    border-bottom: none;
}

.game-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-bg);
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .game-container {
        margin: 40px auto;
        padding: 30px 20px;
        border-radius: 16px;
    }

    .game-header h1 {
        font-size: 2rem;
    }

    .game-stats {
        gap: 15px;
    }

    .stat-item {
        padding: 15px 20px;
        min-width: 100px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .bet-controls {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 16px;
    }

    .paytable {
        padding: 20px;
    }
}