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

:root {
    /* Wild West Color Palette */
    --color-sand: #E8DCC4;
    --color-leather: #8B4513;
    --color-wood: #6B4423;
    --color-dark-wood: #3E2723;
    --color-sunset-orange: #D2691E;
    --color-gold: #DAA520;
    --color-rust: #B7410E;
    
    /* Semantic Colors */
    --bg-primary: #F5EFE6;
    --bg-secondary: #E8DCC4;
    --bg-dark: #3E2723;
    --bg-card: #FEFBF6;
    
    --text-primary: #2C1810;
    --text-secondary: #6B4423;
    --text-muted: #8B6F47;
    --text-light: #F5EFE6;
    
    --border-color: #D4C4A8;
    --border-dark: #8B6F47;
    
    --accent: #D2691E;
    --accent-hover: #B7410E;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Crimson Text', serif;
    --font-accent: 'Rye', serif;
    --font-ui: 'Open Sans', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(46, 24, 16, 0.1);
    --shadow-md: 0 4px 8px rgba(46, 24, 16, 0.15);
    --shadow-lg: 0 8px 16px rgba(46, 24, 16, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* ========================================
   Age Verification Modal
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(62, 39, 35, 0.95), rgba(107, 68, 35, 0.95));
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 3px solid var(--color-wood);
    border-radius: 8px;
    padding: var(--spacing-2xl);
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.modal-icon {
    color: var(--accent);
    margin-bottom: var(--spacing-md);
}

.modal-content h2 {
    font-family: var(--font-accent);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.modal-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.modal-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.modal-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.modal-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-dark);
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-large {
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
}

.modal-buttons .btn {
    flex: 1;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: sticky;
    top: 0;
    background: rgba(62, 39, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-wood);
    z-index: 100;
    padding: var(--spacing-sm) 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--color-gold);
}

.logo svg {
    color: var(--color-gold);
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
}

.nav a {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s ease;
}

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

.disclaimer-badge {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

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

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../attached_assets/generated_images/Wild_West_saloon_interior_d5e2bc52.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(62, 39, 35, 0.7), rgba(107, 68, 35, 0.6));
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-accent);
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: var(--spacing-lg);
    color: var(--color-gold);
    font-weight: 600;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.hero-disclaimer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 2px solid rgba(218, 165, 32, 0.3);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================================
   Disclaimer Banner
   ======================================== */
.disclaimer-banner {
    background: var(--color-wood);
    color: var(--text-light);
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 2px solid var(--color-dark-wood);
    border-bottom: 2px solid var(--color-dark-wood);
}

.disclaimer-banner p {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section-light {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-md);
}

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

.section-dark .section-header p {
    color: var(--color-sand);
}

.section-disclaimer {
    background: rgba(210, 105, 30, 0.2);
    border: 2px solid var(--accent);
    border-radius: 6px;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-top: var(--spacing-sm);
    font-size: 0.95rem;
}

/* ========================================
   Features
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    color: var(--accent);
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

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

/* ========================================
   Game Section
   ======================================== */
.game-container {
    max-width: 900px;
    margin: 0 auto;
}

.game-wrapper {
    position: relative;
    background: black;
    border: 4px solid var(--color-wood);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.game-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    color: var(--text-light);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(218, 165, 32, 0.3);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-disclaimer {
    margin-top: var(--spacing-md);
    background: rgba(210, 105, 30, 0.2);
    border: 2px solid var(--accent);
    border-radius: 6px;
    padding: var(--spacing-md);
    text-align: center;
}

.game-disclaimer p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   About / Philosophy
   ======================================== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

.about-intro {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.checklist {
    list-style: none;
}

.checklist li {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 6px;
}

.checklist svg {
    flex-shrink: 0;
    color: var(--accent);
}

.checklist span {
    line-height: 1.6;
}

/* ========================================
   Responsible Gaming
   ======================================== */
.responsible-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.info-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-lg);
}

.info-card h3 {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--accent);
}

.info-card p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.info-card ul {
    margin-left: var(--spacing-md);
}

.info-card li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-wood), var(--color-dark-wood));
    color: var(--text-light);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

.cta-disclaimer {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    border-top: 3px solid var(--color-wood);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    color: var(--color-sand);
    font-size: 0.95rem;
}

.footer-column h4 {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-gold);
}

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

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: var(--color-sand);
    transition: color 0.3s ease;
}

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

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

.footer-disclaimer {
    background: rgba(210, 105, 30, 0.2);
    border: 2px solid var(--accent);
    border-radius: 6px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-disclaimer p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-sand);
}

/* ========================================
   Landscape Warning
   ======================================== */
.landscape-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--accent);
    color: white;
    padding: var(--spacing-sm);
    text-align: center;
    z-index: 200;
    font-family: var(--font-ui);
    font-weight: 600;
}

.landscape-warning.show {
    display: block;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: var(--spacing-sm);
        border-top: 1px solid var(--color-wood);
        gap: var(--spacing-md);
    }
    
    .disclaimer-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .responsible-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .modal-content {
        padding: var(--spacing-lg);
    }
}
