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

:root {
    /* Color Palette - Dark Casino Theme */
    --color-bg-body: #0f172a; /* Deep Blue/Black */
    --color-bg-card: #1e293b;
    --color-bg-darker: #020617;
    
    --color-primary: #f59e0b; /* Amber/Gold */
    --color-primary-hover: #d97706;
    --color-accent: #8b5cf6; /* Violet */
    --color-success: #10b981;
    
    --color-text-main: #f1f5f9;
    --color-text-muted: #94a3b8;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-glow: 0 0 15px rgba(245, 158, 11, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important; /* Override inline style */
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem !important;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    margin-top: 2.5rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
    font-size: 1rem;
}

ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

ul li::before {
    content: "➤";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 0.8em;
    top: 0.1em;
}

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

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

/* =========================================
   2. Layout & Containers
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   3. Header Styles
   ========================================= */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo Placeholder styling since images are missing */
.men1 a {
    display: block;
    width: 150px;
    height: 40px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-sm);
    position: relative;
}
.men1 a::after {
    content: "CASINO X";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Mobile Header Logic */
header.mob {
    display: none; /* Hidden by default on desktop */
}

/* Desktop Header Content */
header:not(.mob) .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   4. Hero / Slider Section
   ========================================= */
.joyl-slide {
    position: relative;
    background: radial-gradient(circle at center, #2e1065 0%, var(--color-bg-body) 70%);
    min-height: 400px;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.joyl-slide::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* =========================================
   5. Main Content Area
   ========================================= */
.main {
    padding-bottom: 4rem;
    flex: 1;
}

/* Target the Flex container from inline style */
div[style*="display:flex"] {
    display: grid !important;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.joy-left {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.03);
}

/* Top Intro Block */
.container > .joy-left {
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-accent);
}

/* =========================================
   6. Sidebar (.main-right)
   ========================================= */
.main-right {
    background: linear-gradient(180deg, var(--color-bg-card) 0%, rgba(30, 41, 59, 0.5) 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    text-align: center;
}

.main-right b {
    display: block;
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 1rem 0;
}

.main-right a.href::before {
    content: "Перейти на зеркало";
    display: inline-block;
    background: var(--color-success);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
}

.main-right a.href:hover::before {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* =========================================
   7. Buttons & Interactive Elements
   ========================================= */
.btn-box {
    text-align: center;
    margin: 2.5rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--color-primary), #f57c00);
    color: #fff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.6);
}

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

.btn:active {
    transform: translateY(1px);
}

/* Mobile Menu Buttons */
.menn {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.men3, .men4 {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.men3 {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.men4 {
    background: var(--color-primary);
    color: #000;
}

.men3:hover, .men4:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* =========================================
   8. Footer
   ========================================= */
footer {
    background-color: var(--color-bg-darker);
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.menu-fo {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* =========================================
   9. Scroller (Back to Top)
   ========================================= */
#scroller {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
    transition: var(--transition);
    z-index: 999;
    font-size: 0; /* Hide text, define icon below */
}

#scroller::after {
    content: "▲";
    font-size: 1.2rem;
}

#scroller:hover {
    background: #7c3aed;
    transform: translateY(-5px);
}

/* =========================================
   10. Form Elements (Generic)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    transition: var(--transition);
    margin-bottom: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    background: rgba(255,255,255,0.1);
}

/* =========================================
   11. Media Queries (Responsive)
   ========================================= */
@media (max-width: 992px) {
    div[style*="display:flex"] {
        grid-template-columns: 1fr; /* Stack sidebar below content */
    }
    
    .joyl-slide {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    /* Header switching */
    header:not(.mob) {
        display: none;
    }
    
    header.mob {
        display: block;
        padding-bottom: 1rem;
    }
    
    .menn {
        justify-content: center;
    }

    /* Layout Adjustments */
    .container {
        padding: 0 1rem;
    }
    
    .joy-left, .main-right {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
    }
    
    #scroller {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Micro-animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.joy-left, .main-right {
    animation: fadeIn 0.6s ease-out;
}
