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

:root {
    --arctic-blue: #2C5F7C;
    --ice-blue: #4A90A4;
    --snow-white: #F8FAFB;
    --pine-green: #2D5016;
    --forest-green: #3D6B1F;
    --frost-gray: #E8EDEF;
    --charcoal: #2C3E50;
    --warm-wood: #8B6F47;
    --accent-orange: #D97642;
    --text-primary: #1A2530;
    --text-secondary: #5A6C7D;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--snow-white);
    overflow-x: hidden;
}

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

/* Age Verification Modal */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 37, 48, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-modal.hidden {
    display: none;
}

.age-modal-content {
    background: white;
    padding: 48px;
    border-radius: 24px;
    text-align: center;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.4s ease-out;
}

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

.age-modal-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.age-modal-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--arctic-blue);
}

.age-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

.age-confirm-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    gap: 12px;
}

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

.age-confirm-checkbox label {
    cursor: pointer;
    user-select: none;
    font-size: 15px;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

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

.cookie-content p {
    flex: 1;
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.cookie-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cookie-link {
    color: var(--arctic-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.cookie-link:hover {
    color: var(--ice-blue);
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--arctic-blue);
    transition: var(--transition-smooth);
}

.logo:hover {
    color: var(--ice-blue);
}

.logo-icon {
    font-size: 32px;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: var(--transition-smooth);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--arctic-blue);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--arctic-blue) 0%, var(--ice-blue) 50%, var(--forest-green) 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/><path d="M0,400 Q300,350 600,400 T1200,400 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.03)"/></svg>') no-repeat bottom center;
    background-size: cover;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 80px 20px;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 20px;
    max-width: 720px;
    margin: 0 auto 48px;
    line-height: 1.8;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    animation: bounce 2s infinite;
}

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: #C56535;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--arctic-blue);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Games Section */
.games-section {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--arctic-blue);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.game-card-image {
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.alpine-slots {
    background: linear-gradient(135deg, #4A90A4 0%, #2C5F7C 100%);
}

.pine-poker {
    background: linear-gradient(135deg, #3D6B1F 0%, #2D5016 100%);
}

.frost-wheel {
    background: linear-gradient(135deg, #8B6F47 0%, #D97642 100%);
}

.game-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--arctic-blue);
}

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

.game-card-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--arctic-blue);
    margin-bottom: 12px;
}

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

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--frost-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--arctic-blue);
    margin-bottom: 12px;
}

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

/* Footer */
.footer {
    background: var(--charcoal);
    color: white;
    padding: 64px 0 24px;
}

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

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-orange);
}

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: white;
    padding-left: 4px;
}

.footer-disclaimer {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.footer-disclaimer p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.footer-disclaimer p:last-of-type {
    margin-bottom: 12px;
}

.help-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.help-links a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.help-links a:hover {
    color: #F08A5D;
}

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

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

    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: white;
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 36px;
    }

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

    .section-header h2 {
        font-size: 32px;
    }

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

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

    .age-modal-content {
        padding: 32px 24px;
        margin: 20px;
    }
}

/* Page Styles */
.page-hero {
    background: linear-gradient(135deg, var(--arctic-blue) 0%, var(--ice-blue) 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.page-content {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--arctic-blue);
    margin: 48px 0 24px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--pine-green);
    margin: 32px 0 16px;
}

.page-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.page-content ul, .page-content ol {
    margin: 20px 0 20px 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-content li {
    margin-bottom: 12px;
}

/* Game Page Styles */
.game-container {
    min-height: 100vh;
    padding: 40px 20px;
    background: var(--frost-gray);
}

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

.game-header h1 {
    font-size: 36px;
    color: var(--arctic-blue);
    margin-bottom: 12px;
}

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

.stat-item {
    background: white;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--arctic-blue);
}

.game-board {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 32px;
    }

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

    .game-board {
        padding: 24px;
    }
}