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

:root {
    /* Color Palette - Modern Dark Casino Theme */
    --color-bg: #0f172a; /* Dark Navy/Slate */
    --color-bg-card: #1e293b;
    --color-bg-darker: #020617;
    
    --color-primary: #f59e0b; /* Amber/Gold */
    --color-primary-hover: #d97706;
    --color-secondary: #6366f1; /* Indigo */
    --color-accent: #10b981; /* Emerald Green */
    
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --line-height: 1.6;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    /* UI Elements */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(245, 158, 11, 0.3);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-md);
}

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

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

/* Helper to target the inline flex container for responsiveness */
div[style*="display:flex"] {
    gap: var(--spacing-lg);
}

/* =========================================
   3. Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 3rem); /* Responsive typography */
    text-align: center;
    background: linear-gradient(to right, var(--color-primary), #fff, var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: var(--spacing-lg) 0;
}

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

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
}

/* =========================================
   4. Header Styles
   ========================================= */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background: url('https://placehold.co/150x50/f59e0b/ffffff?text=LOGO') no-repeat center/contain; /* Placeholder for logo */
}

/* Mobile Header / Nav Bar */
header.mob {
    display: block;
}

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

.menn {
    display: flex;
    gap: var(--spacing-sm);
}

/* Navigation Buttons */
.men3, .men4 {
    padding: 0.6em 1.2em;
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

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

.men3:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.men4 {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: #fff;
    border: 1px solid transparent;
}

.men4:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

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

.main1 {
    width: 100%;
    height: 300px;
    background: url('https://placehold.co/1200x400/1e293b/f59e0b?text=CASINO+X+SLIDER') no-repeat center/cover;
    border-radius: var(--radius-md);
}

/* =========================================
   6. Content Area
   ========================================= */
.main {
    padding-bottom: var(--spacing-xl);
}

.joy-left {
    background-color: var(--color-bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex: 3; /* Grid/Flex sizing */
}

/* Sidebar Styling */
.main-right {
    flex: 1;
    min-width: 300px;
    background-color: var(--color-bg-darker);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Make empty link in main-right visible as a banner placeholder */
.main-right a.href {
    display: block;
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--color-secondary), #4338ca);
    border-radius: var(--radius-sm);
    position: relative;
}
.main-right a.href::after {
    content: 'BONUS BANNER';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

/* =========================================
   7. Components: Buttons & Forms
   ========================================= */
.btn-box {
    display: flex;
    justify-content: center;
    margin: var(--spacing-lg) 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--color-primary) 0%, #ff5500 100%);
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
    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.2), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

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

.btn:active {
    transform: translateY(0);
}

/* Lists styling */
ol li, ul li {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

ol li::marker {
    color: var(--color-primary);
    font-weight: bold;
}

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

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

.menu-fo {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* =========================================
   9. Utilities & Interactive Elements
   ========================================= */
/* Back to Top Button */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: var(--transition);
}

#scroller:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-5px);
}

.b-top-but {
    font-size: 0; /* Hide text, use icon logic usually, or style text small */
}

#scroller::after {
    content: '↑';
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Forms (Generic if added later) */
input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    margin-bottom: 1rem;
    transition: var(--transition);
}

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

/* =========================================
   10. Media Queries (Responsiveness)
   ========================================= */
@media (max-width: 992px) {
    .joyl-slide {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    /* Stack the flex container content */
    div[style*="display:flex"] {
        flex-direction: column !important;
    }
    
    .main-right {
        order: -1; /* Sidebar on top or bottom depending on preference, usually bottom for banners */
        margin-top: var(--spacing-md);
    }
    
    header.mob .container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .menn {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .men3, .men4 {
        flex: 1;
        text-align: center;
        font-size: 0.8rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .joy-left {
        padding: var(--spacing-md);
    }
    
    #scroller {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}
