
/* =========================================
   1. CSS Reset & Variables
   ========================================= */
:root {
    /* Color Palette - Dark Gaming/Modern Theme */
    --color-bg-body: #0f172a;       /* Deep Slate */
    --color-bg-surface: #1e293b;    /* Lighter Slate for cards */
    --color-bg-surface-2: #334155;  /* Hover states */
    
    --color-primary: #f59e0b;       /* Amber/Gold */
    --color-primary-hover: #d97706;
    --color-secondary: #6366f1;     /* Indigo */
    
    --color-text-main: #f1f5f9;     /* Off-white */
    --color-text-muted: #94a3b8;    /* Muted text */
    --color-border: #334155;
    
    --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);
    
    /* Typography */
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --line-height-base: 1.6;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    
    /* Spacing */
    --container-width: 1200px;
    --spacing-container: 1.5rem;
}

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

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

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

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

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

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

h1, h2, h3 {
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    background: linear-gradient(135deg, #fff 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 2rem 0;
    text-align: center;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

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

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

li {
    margin-bottom: 0.5rem;
}

/* =========================================
   3. Header & Navigation
   ========================================= */
header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background-color: var(--color-bg-surface-2); /* Placeholder for logo */
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.men1 a::after {
    content: 'JOYCASINO';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 2px;
}

/* Navigation Menu */
header.mob {
    background-color: var(--color-bg-surface);
    margin-top: -1px; /* Overlap borders */
}

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

.menn {
    display: flex;
    gap: 1rem;
}

.men3, .men4 {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

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

.men3:hover {
    background-color: rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}

.men4 {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.men4:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* =========================================
   4. Hero / Slider Section
   ========================================= */
.joyl-slide {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: radial-gradient(circle at center, #2d3748 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.joyl-slide::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIiBvcGFjaXR5PSIwLjAyIiBmaWxsPSIjZmZmIj48cGF0aCBkPSJNMjAgMjBMMCAwSDQwTDIwIDIwek0yMCAyMEw0MCA0MEgwTDIwIDIweiIgLz48L3N2Zz4=');
    opacity: 0.3;
}

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

.main1 {
    /* Placeholder for hero content */
    height: 200px;
}

/* Full slide links */
.joyl-slide > .href {
    position: absolute;
    inset: 0;
    z-index: 5;
}

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

.joy-left > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-main);
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

/* Flex layout fix for main content */
/* Targeting the anonymous flex container from HTML */
.container > div[style*="flex"] {
    display: grid !important;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

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

.main-right {
    position: sticky;
    top: 6rem;
}

.main-right .href {
    display: block;
    height: 400px;
    background: linear-gradient(180deg, var(--color-bg-surface) 0%, var(--color-bg-surface-2) 100%);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--color-border);
    position: relative;
}

.main-right .href::after {
    content: 'BONUS ADS';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-muted);
    font-weight: 700;
    letter-spacing: 2px;
}

/* =========================================
   6. Buttons & Interactive Elements
   ========================================= */
.btn-box {
    text-align: center;
    margin: 2rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--color-primary), #f59e0b);
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: var(--shadow-glow);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

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

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

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

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

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

/* =========================================
   8. Scroll to Top
   ========================================= */
#scroller {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.8;
}

#scroller:hover {
    transform: scale(1.1);
    opacity: 1;
}

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

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

/* =========================================
   9. Form Elements (Generic)
   ========================================= */
input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-body);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-family: inherit;
    transition: border-color 0.2s;
}

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

/* =========================================
   10. Responsiveness (Mobile)
   ========================================= */
@media (max-width: 768px) {
    :root {
        --spacing-container: 1rem;
    }

    /* Layout breakdown */
    .container > div[style*="flex"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .main-left {
        padding: 1.5rem;
    }

    .main-right {
        display: none; /* Often hidden on mobile for better UX, or move to bottom */
    }

    /* Header adjustments */
    header.mob .container {
        flex-direction: column;
    }
    
    .men1 {
        margin-bottom: 0.5rem;
    }
    
    .menn {
        width: 100%;
        justify-content: center;
    }
    
    .men3, .men4 {
        flex: 1;
        text-align: center;
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    /* Typography scale down */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }

    .btn {
        width: 100%;
        padding: 1rem;
    }
    
    .joyl-slide {
        min-height: 250px;
    }
}
