/* ==========================================================================
   CSS Variables & Theme Setup
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-primary: #0b0c10;       /* Deep Obsidian */
    --bg-secondary: #1f2833;     /* Dark Stone/Slate */
    --bg-overlay: rgba(11, 12, 16, 0.85);
    
    --accent-gold: #c0a062;      /* Ancient Gold */
    --accent-gold-hover: #d4af6a;
    --accent-gold-glow: rgba(192, 160, 98, 0.4);
    
    --text-primary: #ffffff;
    --text-secondary: #c5c6c7;
    --text-muted: #888888;

    --border-color: rgba(192, 160, 98, 0.2);
    --glass-bg: rgba(31, 40, 51, 0.6);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
}

h3 {
    font-size: 1.5rem;
}

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

strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ==========================================================================
   Layout & Grid
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Components (Buttons, Cards)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-gold {
    background: linear-gradient(135deg, #c0a062 0%, #8c7340 100%);
    color: #000 !important;
    border: 1px solid #d4af6a;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d4af6a 0%, #a68a4f 100%);
    box-shadow: 0 6px 20px rgba(192, 160, 98, 0.6);
    transform: translateY(-2px);
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px var(--accent-gold-glow);
}

.card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-logo img {
    width: 40px;
    height: 40px;
}

.brand-logo:hover {
    color: var(--accent-gold-hover);
}

.mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
}

.nav-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.nav-link {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 15px 20px;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
    background: rgba(192, 160, 98, 0.1);
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        flex-direction: row;
        width: auto;
        background: none;
        padding: 0;
        border: none;
        transform: none;
        opacity: 1;
    }
    
    .nav-link {
        width: auto;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .nav-link:hover, .nav-link.active {
        background: none;
        text-shadow: 0 0 10px var(--accent-gold-glow);
    }
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero, .page-hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
}

.page-hero {
    min-height: 50vh;
    padding-top: calc(var(--header-height) + 40px);
}

.hero-bg, .page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay, .page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 12, 16, 0.6) 0%, rgba(11, 12, 16, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

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

.hero-tag {
    display: inline-block;
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.hero-legal {
    margin-top: 40px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* ==========================================================================
   Game Section
   ========================================================================== */
.game-section {
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.game-wrapper {
    background: var(--bg-primary);
    padding: 10px;
    border-radius: 12px;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 40px rgba(192, 160, 98, 0.2), inset 0 0 20px rgba(192, 160, 98, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.game-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Fallback for aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .game-container {
        padding-top: 56.25%;
    }
}

/* ==========================================================================
   Content Blocks (About, Terms, Privacy)
   ========================================================================== */
.content-block {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-block h2 {
    margin-top: 30px;
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

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

.content-block p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.content-block ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-block li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 15px;
}

.content-block li::before {
    content: '♦';
    position: absolute;
    left: -5px;
    color: var(--accent-gold);
    font-size: 0.8rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(11, 12, 16, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #050608;
    padding-top: 60px;
    border-top: 2px solid var(--accent-gold);
}

.disclaimer-banner {
    background: rgba(192, 160, 98, 0.1);
    border: 1px solid var(--accent-gold);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand p {
    margin-top: 15px;
    font-size: 0.9rem;
    max-width: 400px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-muted);
}

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

/* ==========================================================================
   Utility Classes & Animations
   ========================================================================== */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px var(--accent-gold-glow); }
    50% { box-shadow: 0 0 25px rgba(192, 160, 98, 0.6); }
    100% { box-shadow: 0 0 10px var(--accent-gold-glow); }
}

@media (max-width: 767px) {
    .content-block {
        padding: 25px 15px;
    }
    
    .section {
        padding: 60px 0;
    }
}