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

:root {
    --bg-dark: #0f0e13;
    --gold: #d4af37;
    --emerald: #2ec4b6;
    --purple: #7b2cbf;
    --crimson: #ff006e;
    --royal-gradient: linear-gradient(135deg, var(--gold), var(--purple), var(--emerald), var(--crimson));
    --glass: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.14);
    
    --sidebar-width: 230px;
    --sidebar-collapsed: 80px;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(123, 44, 191, 0.15), transparent 60%),
                radial-gradient(circle at 100% 100%, rgba(46, 196, 182, 0.1), transparent 50%);
    z-index: -2;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gold { color: var(--gold); }
.text-emerald { color: var(--emerald); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Legal Banners */
.top-legal-banner {
    background: var(--royal-gradient);
    color: #fff;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 100;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

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

/* Sidebar */
.sidebar {
    width: var(--sidebar-collapsed);
    background: rgba(15, 14, 19, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.sidebar:hover, .sidebar.open {
    width: var(--sidebar-width);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

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

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.sidebar .brand-logo span {
    opacity: 0;
    transition: var(--transition);
}

.sidebar:hover .brand-logo span, .sidebar.open .brand-logo span {
    opacity: 1;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-nav {
    flex: 1;
    padding: 2rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    min-width: var(--sidebar-width);
}

.nav-item i {
    width: 24px;
    font-size: 1.2rem;
    text-align: center;
    margin-right: 1.5rem;
    transition: var(--transition);
}

.nav-item span {
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
}

.sidebar:hover .nav-item span, .sidebar.open .nav-item span {
    opacity: 1;
}

.nav-item:hover, .nav-item.active {
    color: var(--gold);
    background: var(--glass);
    border-left: 3px solid var(--gold);
    box-shadow: inset 20px 0 20px -20px rgba(212, 175, 55, 0.3);
}

.nav-item:hover i {
    text-shadow: 0 0 15px var(--gold);
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-collapsed);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Glass Cards */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.1);
}

/* Buttons */
.btn-gold {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--royal-gradient);
    transition: var(--transition);
    z-index: -1;
}

.btn-gold:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.btn-gold:hover::before {
    left: 0;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.4;
    filter: brightness(0.7) contrast(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    background: linear-gradient(to right, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Game Card */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.game-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--glass);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.game-card:hover img {
    transform: scale(1.05);
}

/* Sections */
.section-pad {
    padding: 6rem 0;
}

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

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

.feature-box i {
    font-size: 3rem;
    color: var(--emerald);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(46, 196, 182, 0.4));
}

/* Footer */
footer {
    background: #080709;
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

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

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

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

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

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

.footer-disclaimer {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.footer-disclaimer p {
    margin-bottom: 1rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.trust-badge {
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

/* Content Pages */
.page-header {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(circle at top, rgba(123, 44, 191, 0.2), transparent 70%);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

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

.content-container p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Game Iframe Wrapper */
.game-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border: 2px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    margin: 2rem 0;
}

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

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

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
}

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

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

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--royal-gradient);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .app-wrapper {
        flex-direction: column;
    }
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar .brand-logo span,
    .sidebar .nav-item span {
        opacity: 1;
        pointer-events: auto;
        display: inline;
    }
    .sidebar-header, .nav-item {
        min-width: auto;
    }
    .main-content {
        margin-left: 0;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}