
/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Color Palette - Dark Gaming Theme */
    --bg-body: #0f1115;
    --bg-card: #161b22;
    --bg-header: rgba(22, 27, 34, 0.95);
    
    --primary-color: #ffd700;
    --primary-gradient: linear-gradient(135deg, #ffd700 0%, #fdb931 100%);
    --accent-color: #ff4757;
    --accent-hover: #ff6b81;
    
    --text-main: #ffffff;
    --text-secondary: #aab2bd;
    --text-muted: #6c757d;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(255, 215, 0, 0.3);
    
    /* Spacing & Sizing */
    --container-width: 1200px;
    --header-height: 4.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

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

.men1 {
    /* Logo Placeholder styling since image is missing */
    width: 150px;
    height: 50px;
    background: url('https://via.placeholder.com/150x50?text=JOYCASINO') no-repeat center/contain;
    display: block;
}

.men1 a {
    display: block;
    width: 100%;
    height: 100%;
}

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

/* =========================================
   4. HERO & SLIDER AREA
   ========================================= */
.joyl-slide {
    position: relative;
    background: radial-gradient(circle at center, #2a3b55 0%, #0f1115 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* Abstract decorations */
.joyl-slide::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03) 0,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 10px
    );
    z-index: 1;
}

.main1 {
    /* Hero Content Placeholder */
    height: 200px;
    width: 100%;
    background: url('https://via.placeholder.com/1200x400?text=WELCOME+BONUS') no-repeat center/cover;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    position: relative;
    z-index: 2;
}

/* =========================================
   5. MAIN CONTENT AREA
   ========================================= */
.main {
    padding-bottom: 4rem;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 3rem) !important; /* Override inline styles */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-color);
}

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

/* Lists styling */
ul li, ol li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

/* Flex Container for Main + Sidebar */
.main .container > div[style*="display:flex"] {
    display: grid !important; /* Upgrade to Grid */
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

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

/* Sidebar (.main-right) */
.main-right {
    background: linear-gradient(145deg, #1e2530, #161b22);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-color);
    position: sticky;
    top: 6rem;
    color: var(--text-main);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

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

/* =========================================
   6. INTERACTIVE ELEMENTS (Buttons & Forms)
   ========================================= */
.btn-box {
    margin: 2rem 0;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    background: var(--primary-gradient);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fdb931 0%, #ffd700 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

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

.btn:hover::before {
    opacity: 1;
}

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

/* Link styling in text */
.joy-left a:not(.btn), .main-left a:not(.btn) {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(255, 215, 0, 0.3);
    text-underline-offset: 4px;
}

.joy-left a:hover, .main-left a:hover {
    color: #fff;
    text-decoration-color: var(--primary-color);
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background: #050505;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    text-align: center;
}

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

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

/* =========================================
   8. UTILITY COMPONENTS
   ========================================= */
/* Back to top button */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    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.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

#scroller:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

.b-top-but {
    font-size: 0; /* Hide text, show icon ideally, but let's just make it a simple arrow */
}
#scroller::after {
    content: '▲';
    font-size: 1.2rem;
    color: #fff;
}

/* =========================================
   9. RESPONSIVE DESIGN
   ========================================= */

/* Tablet and below */
@media (max-width: 1024px) {
    .main .container > div[style*="display:flex"] {
        grid-template-columns: 1fr; /* Stack sidebar */
    }
    
    .main-right {
        order: -1; /* Move sidebar to top on mobile or stay bottom? Let's keep it standard */
        margin-bottom: 2rem;
        position: static;
    }
}

/* Mobile specific */
@media (max-width: 768px) {
    /* Header switching */
    header:not(.mob) {
        display: none;
    }
    
    header.mob {
        display: block;
        background: var(--bg-card);
        padding: 1rem 0;
    }
    
    header.mob .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .menn {
        display: flex;
        gap: 0.5rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .men3, .men4 {
        padding: 0.6rem 1rem;
        border-radius: var(--radius-md);
        background: rgba(255,255,255,0.05);
        color: #fff;
        font-size: 0.9rem;
        text-align: center;
        border: 1px solid var(--border-color);
        transition: background 0.2s;
    }
    
    .men4 {
        background: var(--accent-color);
        border-color: var(--accent-color);
        font-weight: bold;
    }
    
    .joy-left, .main-left {
        padding: 1.25rem;
    }
    
    h1 {
        font-size: 1.8rem !important;
    }
    
    .menu-fo {
        flex-direction: column;
        gap: 0.5rem;
    }
}

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

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