@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #0e0b09;
    --gold-primary: #d4af37;
    --gold-accent: #fca311;
    --flame: #e85d04;
    --ruby: #6a040f;
    --gold-gradient: linear-gradient(135deg, var(--gold-primary), var(--gold-accent), var(--flame), var(--ruby));
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 215, 0, 0.2);
    --text-main: #f4f4f4;
    --text-muted: #aaaaaa;
    
    --sidebar-collapsed: 80px;
    --sidebar-expanded: 230px;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography Fluidity */
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
p { font-size: 1rem; line-height: 1.6; }

/* Golden Gradient Text */
.text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism Containers */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    box-shadow: 0 0 30px rgba(252, 163, 17, 0.6);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--glass-bg);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Layout System */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-collapsed);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(14, 11, 9, 0.95);
    border-right: 2px solid var(--glass-border);
    backdrop-filter: blur(20px);
    z-index: 100;
    transition: width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    box-shadow: 5px 0 30px rgba(0,0,0,0.8);
}

.sidebar:hover {
    width: var(--sidebar-expanded);
    border-right-color: var(--gold-primary);
}

.sidebar-logo {
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    min-height: 80px;
}

.sidebar-logo svg {
    min-width: 40px;
    height: 40px;
    fill: var(--gold-primary);
}

.sidebar-logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    opacity: 0;
    margin-left: 1rem;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.sidebar:hover .sidebar-logo-text {
    opacity: 1;
    transition-delay: 0.1s;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link svg {
    min-width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.3s ease, transform 0.3s ease;
}

.nav-text {
    margin-left: 1.5rem;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    font-weight: 500;
    letter-spacing: 1px;
}

.sidebar:hover .nav-text {
    opacity: 1;
    transition-delay: 0.1s;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
    background: linear-gradient(90deg, rgba(212,175,55,0.1), transparent);
}

.nav-link:hover svg, .nav-link.active svg {
    fill: var(--gold-accent);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--gold-primary));
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gold-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::before, .nav-link.active::before {
    transform: scaleY(1);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-collapsed);
    width: calc(100% - var(--sidebar-collapsed));
    display: flex;
    flex-direction: column;
}

/* Mandatory Notice Banner */
.legal-banner {
    background: var(--ruby);
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.legal-banner span {
    display: inline-block;
    margin: 0 10px;
}

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

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/photo-1539650116574-8efeb43e2750.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(14,11,9,0.3) 0%, rgba(14,11,9,0.8) 70%, var(--bg-dark) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-legal {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(212,175,55,0.3);
    padding-top: 1rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Sections General */
section {
    padding: 6rem 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

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

/* Featured Game & Games Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    max-width: 500px;
    margin: 0 auto;
}

.game-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 2px solid var(--gold-primary);
}

.game-card-content {
    padding: 2rem;
    text-align: center;
}

.game-card-content h3 {
    margin-bottom: 1rem;
    color: var(--gold-primary);
}

.game-card-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Features Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--gold-gradient);
    -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2L2 22h20L12 2zm0 4.5l6.5 13.5h-13L12 6.5z"/></svg>') no-repeat center / contain;
    mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2L2 22h20L12 2zm0 4.5l6.5 13.5h-13L12 6.5z"/></svg>') no-repeat center / contain;
}

/* Game Iframe Container */
.game-play-section {
    padding: 4rem 5%;
    display: flex;
    justify-content: center;
}

.iframe-wrapper {
    width: 100%;
    max-width: 1200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
    border: 2px solid var(--gold-primary);
    background: #000;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

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

/* Footer */
footer {
    background: rgba(14, 11, 9, 0.98);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 2rem;
    margin-top: auto;
}

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

.footer-col h4 {
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--gold-accent);
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.global-disclaimer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
}

.global-disclaimer p {
    font-size: 0.8rem;
    color: #888;
    max-width: 1000px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badges {
    display: flex;
    gap: 1rem;
    font-weight: bold;
    color: var(--gold-accent);
}

/* Page specific styles */
.page-header {
    padding: 8rem 5% 4rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(212,175,55,0.05), transparent);
    border-bottom: 1px solid var(--glass-border);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.content-container h2 {
    color: var(--gold-primary);
    margin: 2rem 0 1rem;
}

.content-container p, .content-container ul {
    margin-bottom: 1.5rem;
    color: #ccc;
}

.content-container ul {
    padding-left: 2rem;
    list-style-type: square;
}

.content-container ul li::marker {
    color: var(--gold-accent);
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: white;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 10px rgba(252, 163, 17, 0.2);
}

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

/* FAQ Accordion */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: none;
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0,0,0,0.3);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-item.active .faq-question {
    background: rgba(212,175,55,0.1);
}

/* Particles & Animations */
.particles-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--gold-primary);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px var(--gold-accent);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

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

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile & Tablet Responsive */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: 70px;
        bottom: 0;
        top: auto;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--glass-border);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
        z-index: 1000;
    }
    
    .sidebar:hover {
        width: 100%;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding-bottom: 70px; /* Space for bottom nav */
    }
    
    .sidebar-logo {
        display: none;
    }
    
    .sidebar-nav {
        flex-direction: row;
        justify-content: space-around;
        padding: 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 0.5rem;
        flex-direction: column;
        justify-content: center;
        flex: 1;
    }
    
    .nav-link::before {
        left: 50%;
        top: 0;
        height: 3px;
        width: 50%;
        transform: translateX(-50%) scaleX(0);
        transition: transform 0.3s ease;
    }

    .nav-link:hover::before, .nav-link.active::before {
        transform: translateX(-50%) scaleX(1);
    }
    
    .nav-text {
        display: none; /* Hide text on mobile for clean look */
    }
    
    .legal-banner span {
        display: block;
        margin: 5px 0;
    }
    
    section {
        padding: 4rem 5%;
    }
}