
/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    /* Colors */
    --bg-body: #0f1219;
    --bg-card: #1a1f2b;
    --bg-header: rgba(15, 18, 25, 0.95);
    
    --primary: #00d2ff;
    --primary-hover: #3a7bd5;
    --accent: #ff0055;
    --accent-hover: #d60045;
    --gold: #ffd700;
    
    --text-main: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Spacing & Sizing */
    --container-width: 75rem; /* ~1200px */
    --header-height: 4.5rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --glow-primary: 0 0 15px rgba(0, 210, 255, 0.3);
    --glow-accent: 0 0 15px rgba(255, 0, 85, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =========================================
   2. Typography & Base Elements
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(90deg, #fff, #a0aec0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

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

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

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

li {
    margin-bottom: 0.5rem;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* =========================================
   3. Header
   ========================================= */
header {
    background-color: var(--bg-header);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

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

/* Logo Area */
.men1 a {
    display: block;
    width: 10rem;
    height: 3rem;
    background: url('https://placehold.co/200x60/1a1f2b/FFF?text=CASINO+X') no-repeat center/contain;
    transition: transform var(--transition-fast);
}

.men1 a:hover {
    transform: scale(1.05);
}

/* Mobile Header Logic */
header.mob {
    display: none; /* Hidden by default on desktop, assuming first header is for desktop */
}

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

/* Menu Links/Buttons */
.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.5px;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-align: center;
}

/* Login Button style */
.men3 {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.men3:hover {
    background: rgba(0, 210, 255, 0.1);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

/* Register Button style */
.men4 {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    box-shadow: 0 4px 10px rgba(255, 0, 85, 0.4);
}

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

/* =========================================
   4. Hero Section (.joyl-slide)
   ========================================= */
.joyl-slide {
    position: relative;
    background: linear-gradient(rgba(15, 18, 25, 0.7), var(--bg-body)), url('https://placehold.co/1920x600/111/333?text=SLOTS+&+CASINO') center/cover no-repeat;
    min-height: 25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.main1 {
    /* Placeholder for potential hero content */
    min-height: 5rem;
}

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

/* Layout Split: Left Content vs Right Sidebar */
/* Targeting the specific flex inline-style div structure */
.main > .container > div[style*="display:flex"] {
    display: grid !important; /* Override inline style */
    grid-template-columns: 1fr 18rem;
    gap: 2rem;
    margin-top: 2rem;
}

.joy-left {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.main-left {
    display: flex;
    flex-direction: column;
}

/* CTA Button in Content */
.btn-box {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
    transition: all var(--transition-normal);
    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 15px 30px rgba(0, 210, 255, 0.5);
    color: #fff;
}

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

/* Sidebar (.main-right) */
.main-right {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    height: fit-content;
    border: 1px solid var(--primary);
    text-align: center;
    position: sticky;
    top: 6rem;
    box-shadow: var(--shadow-md);
}

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

.main-right a {
    display: block;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: bold;
    border: 1px solid transparent;
}

.main-right a:hover {
    border-color: var(--primary);
    background: rgba(0, 210, 255, 0.1);
}

/* =========================================
   6. Footer
   ========================================= */
footer {
    background-color: #0b0e14;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

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

.menu-fo {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-fo a {
    color: var(--text-secondary);
}

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

/* =========================================
   7. Back to Top Button
   ========================================= */
#scroller {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-normal);
    opacity: 0.8;
}

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

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

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

/* =========================================
   8. Responsive Design (Mobile & Tablet)
   ========================================= */

/* Tablet and smaller */
@media (max-width: 1024px) {
    .main > .container > div[style*="display:flex"] {
        grid-template-columns: 1fr; /* Stack columns */
    }
    
    .main-right {
        position: static;
        width: 100%;
        margin-top: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 90%; /* Scale down typography slightly */
    }

    /* Hide Desktop Header */
    body > header:not(.mob) {
        display: none;
    }

    /* Show Mobile Header */
    header.mob {
        display: block;
    }
    
    header.mob .container {
        flex-direction: column;
        gap: 1rem;
    }

    .menn {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .menn a {
        flex: 1;
    }
    
    .men3, .men4 {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .joy-left {
        padding: 1.25rem;
    }
    
    h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .btn {
        width: 100%;
    }

    #scroller {
        bottom: 1rem;
        right: 1rem;
    }
}

/* =========================================
   9. Helper Classes & Micro-Animations
   ========================================= */

/* Fade In Animation for sections */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Focus states for accessibility */
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Text selections */
::selection {
    background: var(--primary);
    color: #fff;
}
