
/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    /* Color Palette */
    --primary-hue: 250; /* Deep Purple/Blue vibe */
    --accent-hue: 35;   /* Gold/Orange for actions */

    --bg-body: #0f1115;
    --bg-card: #161b22;
    --bg-card-hover: #1c222b;
    --bg-header: rgba(15, 17, 21, 0.95);

    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-accent: #fbbf24;

    --color-brand: hsl(var(--primary-hue), 70%, 60%);
    --color-brand-dark: hsl(var(--primary-hue), 70%, 20%);
    --color-cta: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --color-cta-hover: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 15px rgba(245, 158, 11, 0.4);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 4.5rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 2rem !important; /* Override inline styles if needed */
    margin-bottom: 2rem !important;
    text-align: center;
}

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

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

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

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

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

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

/* Flex container override for the content/sidebar wrapper */
div[style*="display:flex"] {
    display: grid !important;
    grid-template-columns: 1fr 300px; /* Sidebar width fixed */
    gap: 2rem;
    align-items: start;
    margin-bottom: 4rem;
}

/* =========================================
   3. Header & Navigation
   ========================================= */
header {
    background-color: var(--bg-header);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

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

/* Logo Area */
.men1 a {
    display: block;
    width: 150px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 80'%3E%3Ctext x='10' y='55' font-family='Arial' font-size='40' font-weight='bold' fill='white'%3ECASINO%3Ctspan fill='%23f59e0b'%3EX%3C/tspan%3E%3C/text%3E%3C/svg%3E"); /* Placeholder logo */
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
}

/* Nav Menu */
.menn {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.men3, .men4 {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.men3 {
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
}

.men3:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.men4 {
    background: var(--color-cta);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.men4:hover {
    background: var(--color-cta-hover);
    transform: translateY(-2px);
}

/* Mobile Header - Usually hidden on desktop, but HTML structure implies specific usage */
header.mob {
    display: none; /* Hidden by default on desktop */
}

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

.joyl-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://placehold.co/1200x400/161b22/FFF.png?text=Casino+X+Promo'); /* Placeholder */
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: transform 10s ease;
}

.joyl-slide:hover::before {
    transform: scale(1.05);
}

.jou-abs {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

/* Empty links in HTML acting as full overlays */
.joyl-slide > a.href {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

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

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

/* Buttons inside content */
.btn-box {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
}

.btn {
    display: inline-block;
    background: var(--color-cta);
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1.2rem 3rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
}

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

.btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(245, 158, 11, 0.5);
}

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

.btn:active {
    transform: scale(0.98);
}

/* Images in content */
.main-left img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    box-shadow: var(--shadow-md);
}

/* Form Elements (Generic styles for registration forms mentioned in text) */
input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    color: #fff;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

/* =========================================
   6. Sidebar (.main-right)
   ========================================= */
.main-right {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    position: sticky;
    top: 6rem;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    box-shadow: var(--shadow-md);
}

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

.main-right .href {
    display: block;
    width: 100%;
    height: 250px; /* Ad placeholder height */
    background: #0f1115;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.main-right .href::before {
    content: 'Получить Бонус';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.main-right .href::after {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: linear-gradient(45deg, #1e293b, #334155);
    opacity: 0.8;
}

.main-right .href:hover {
    opacity: 0.9;
}

/* =========================================
   7. Footer
   ========================================= */
footer {
    background-color: #000000;
    padding: 3rem 0;
    border-top: 1px solid #1e293b;
    margin-top: auto;
}

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

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

.menu-fo a {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.menu-fo a:hover {
    color: #fff;
}

/* =========================================
   8. Scroll to Top Button
   ========================================= */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-cta);
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    opacity: 0.8;
}

#scroller:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.b-top-but {
    font-size: 0; /* Hide text */
}

#scroller::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: rotate(45deg);
    margin-top: 4px;
}

/* =========================================
   9. Responsive Design
   ========================================= */

/* Tablet & Mobile */
@media (max-width: 992px) {
    div[style*="display:flex"] {
        grid-template-columns: 1fr; /* Stack sidebar below content */
    }
    
    .main-right {
        order: -1; /* Move sidebar to top on mobile/tablet or keep bottom depending on preference. Default 0 is bottom. */
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    /* Header switching */
    header:not(.mob) {
        display: none;
    }

    header.mob {
        display: block;
        padding: 1rem 0;
        height: auto;
    }
    
    header.mob .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menn {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .menn a {
        flex: 1;
        text-align: center;
    }

    .men3, .men4 {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.8rem;
        display: block;
    }

    /* Content adjustments */
    .joy-left {
        padding: 1.5rem;
    }
    
    h1 {
        margin-top: 1rem !important;
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .joyl-slide {
        min-height: 250px;
        margin: 1rem 0;
    }
    
    div[style*="display:flex"] {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .main-right {
        width: 100%;
    }
}
