
/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette - Dark Casino Theme */
    --c-bg-body: #0f1219;
    --c-bg-card: #1a1e29;
    --c-bg-header: rgba(15, 18, 25, 0.95);
    
    --c-primary: #ffc107; /* Gold */
    --c-primary-hover: #ffdb58;
    --c-accent: #e74c3c; /* Red/Orange for CTA */
    --c-accent-hover: #ff6b6b;
    
    --c-text-main: #f0f2f5;
    --c-text-muted: #a0aec0;
    --c-text-dark: #1a202c;
    
    --c-border: rgba(255, 255, 255, 0.1);
    --c-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --c-glow: 0 0 15px rgba(255, 193, 7, 0.3);

    /* Typography */
    --font-main: 'Montserrat', 'Roboto', system-ui, -apple-system, sans-serif;
    --fs-base: 1rem;
    --fs-h1: clamp(1.8rem, 5vw, 3rem);
    --fs-h2: clamp(1.5rem, 3vw, 2.2rem);
    
    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--c-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

h1 {
    font-size: var(--fs-h1);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    /* Override inline styles safely */
    margin: var(--spacing-md) 0 !important; 
}

h2 {
    font-size: var(--fs-h2);
    margin-top: var(--spacing-md);
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--c-accent);
}

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

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--c-text-muted);
}

li {
    margin-bottom: 0.5rem;
}

/* =========================================
   3. LAYOUT & CONTAINERS
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Flex row override for the inline style div */
div[style*="display:flex"] {
    display: flex;
    flex-wrap: wrap; /* Ensure wrapping on mobile */
    gap: var(--spacing-md);
}

/* =========================================
   4. HEADER
   ========================================= */
header {
    background: var(--c-bg-header);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--c-border);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background-image: url('https://placehold.co/300x100/ffc107/000?text=LOGO'); /* Placeholder */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center left;
}

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

/* =========================================
   5. HERO & SLIDER AREA
   ========================================= */
.joyl-slide {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #1a0b2e 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--c-border);
    overflow: hidden;
}

.joyl-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 193, 7, 0.15), transparent 70%);
}

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

/* Fix for empty links in hero acting as buttons */
.joyl-slide > a.href {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.joyl-slide > a.href:first-of-type { left: 20px; }
.joyl-slide > a.href:last-of-type { right: 20px; }

.joyl-slide > a.href:hover {
    background: var(--c-primary);
}

/* =========================================
   6. MAIN CONTENT AREA
   ========================================= */
.main {
    padding-bottom: var(--spacing-lg);
}

.joy-left {
    background: var(--c-bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    margin-bottom: var(--spacing-md);
}

/* Split Layout */
.main-left {
    flex: 1;
    min-width: 0; /* Flexbox text overflow fix */
    background: var(--c-bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--c-shadow);
}

.main-right {
    flex: 0 0 300px; /* Fixed width sidebar */
    background: linear-gradient(145deg, #232836, #1a1e29);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-primary);
    height: fit-content;
    position: sticky;
    top: 90px;
    text-align: center;
}

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

/* Sidebar button */
.main-right .href {
    display: block;
    margin-top: 1rem;
    padding: 10px;
    background: var(--c-accent);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-right .href:hover {
    background: var(--c-accent-hover);
    transform: translateY(-2px);
}

/* =========================================
   7. BUTTONS & INTERACTIVE ELEMENTS
   ========================================= */
.btn-box {
    display: flex;
    justify-content: center;
    margin: var(--spacing-md) 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--c-primary) 0%, #e6ac00 100%);
    color: var(--c-text-dark);
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
    transition: all var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::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: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.6);
}

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

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

/* =========================================
   8. TABLES & LISTS
   ========================================= */
/* Style specific lists if needed to look like features */
.main-left ul li {
    position: relative;
    padding-left: 20px;
}

.main-left ul li::before {
    content: '►';
    color: var(--c-primary);
    position: absolute;
    left: 0;
    font-size: 0.8em;
    top: 4px;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: #050608;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--c-border);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.menu-fo {
    color: var(--c-text-muted);
    font-size: 0.9rem;
    word-spacing: 5px;
}

/* =========================================
   10. SCROLL TOP BUTTON
   ========================================= */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--c-accent);
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: var(--transition-smooth);
    opacity: 0.8;
}

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

.b-top-but {
    display: none; /* Hide text, maybe add icon instead via CSS */
}

#scroller::after {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid white;
    border-left: 2px solid white;
    transform: rotate(45deg);
    margin-top: 4px;
}

/* =========================================
   11. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    div[style*="display:flex"] {
        flex-direction: column !important;
    }
    
    .main-right {
        width: 100%;
        margin-top: var(--spacing-md);
        position: static;
    }
}

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

    header.mob {
        display: block;
        padding: 10px 0;
    }
    
    header.mob .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .menn {
        display: flex;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .men3, .men4 {
        padding: 8px 16px;
        background: rgba(255,255,255,0.1);
        border-radius: 20px;
        font-size: 0.9rem;
        transition: 0.3s;
    }

    .men4 {
        background: var(--c-primary);
        color: var(--c-text-dark);
        font-weight: bold;
    }

    /* Layout adjustments */
    .container {
        padding: 0 15px;
    }

    .joy-left, .main-left, .main-right {
        padding: 1rem;
    }

    /* Hero Text adjustments */
    .joyl-slide {
        min-height: 250px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}
