
/* =========================================
   1. VARIABLES & SETUP
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;900&family=Inter:wght@300;400;600&display=swap');

:root {
    /* Palette - Dark Gaming Theme */
    --color-bg-body: #0f1219;
    --color-bg-card: #1a1f2e;
    --color-bg-dark: #090b10;
    
    --color-primary: #ffc800;
    --color-primary-hover: #e6b400;
    --color-secondary: #ff4e50;
    --color-accent: #00d2ff;
    
    --color-text-main: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-text-heading: #ffffff;
    
    --color-border: #2d3748;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ffc800 0%, #ff9100 100%);
    --gradient-dark: linear-gradient(to bottom, #1a1f2e, #131722);
    --gradient-btn: linear-gradient(90deg, #ff4e50 0%, #f9d423 100%);

    /* Spacing & Sizes */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 15px rgba(255, 200, 0, 0.3);
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

ul, ol {
    list-style: none;
}

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

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

h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(255, 200, 0, 0.15);
}

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

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

strong, b {
    color: var(--color-text-heading);
    font-weight: 600;
}

/* Content Lists */
.main-left ul, 
.main-left ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.main-left ul li {
    position: relative;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
}

.main-left ul li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.main-left ol {
    counter-reset: item;
}

.main-left ol li {
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.main-left ol li::before {
    content: counter(item) ".";
    counter-increment: item;
    color: var(--color-primary);
    font-weight: bold;
    margin-right: var(--spacing-xs);
}

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

/* Flex wrapper fix for the inline style in HTML */
div[style*="display:flex"] {
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

/* =========================================
   5. HEADER STYLES
   ========================================= */
header {
    background-color: rgba(15, 18, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo Area */
.men1 a {
    display: block;
    width: 180px;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 60"><text x="10" y="45" font-family="sans-serif" font-weight="900" font-size="40" fill="%23ffc800">JOY</text><text x="95" y="45" font-family="sans-serif" font-weight="900" font-size="40" fill="white">CASINO</text></svg>') no-repeat center/contain;
}

/* Mobile Header / Navigation */
header.mob {
    display: block; /* Assuming we want to show this unified header */
}

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

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

.menn a.href {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.men3, .men4 {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.men3:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.men4 {
    background: var(--gradient-primary);
    color: var(--color-bg-dark);
    box-shadow: var(--shadow-glow);
}

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

/* =========================================
   6. HERO SECTION
   ========================================= */
.joyl-slide {
    position: relative;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
    background: radial-gradient(circle at center, #2d3748 0%, #0f1219 100%);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

/* Placeholder for main1 background image */
.main1 {
    width: 100%;
    height: 350px;
    background: linear-gradient(45deg, #1a1f2e 25%, #232d42 25%, #232d42 50%, #1a1f2e 50%, #1a1f2e 75%, #232d42 75%, #232d42 100%);
    background-size: 40px 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

/* Overlay Links in Hero */
.joyl-slide > a.href {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Intro Text */
.joy-left > p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: var(--spacing-md) auto var(--spacing-lg);
    text-align: center;
    color: var(--color-text-main);
}

/* =========================================
   7. MAIN CONTENT AREA
   ========================================= */
.main-left {
    flex: 2;
    min-width: 300px; /* Responsive wrapping */
    background: var(--color-bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

/* CTA Button Box */
.btn-box {
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--gradient-btn);
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(255, 78, 80, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 78, 80, 0.5);
}

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

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

/* =========================================
   8. SIDEBAR
   ========================================= */
.main-right {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(180deg, var(--color-bg-card) 0%, rgba(26, 31, 46, 0) 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    position: sticky;
    top: 100px; /* Sticks below header */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.main-right a.href {
    display: block;
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" style="background:%23000"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" fill="white">BANNER</text></svg>') center/cover;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast);
}

.main-right a.href:hover {
    transform: scale(1.02);
}

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

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

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

.menu-fo a {
    color: var(--color-text-main);
    font-weight: 500;
}

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

/* =========================================
   10. INTERACTIVE ELEMENTS & UTILS
   ========================================= */
/* Back to Top Button */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-card-bg);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

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

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

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

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

/* =========================================
   11. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    div[style*="display:flex"] {
        flex-direction: column;
    }
    
    .main-left, .main-right {
        width: 100%;
    }
    
    .main-right {
        position: static;
        order: -1; /* Show sidebar/mirror info first on tablet if desired, or remove to keep below */
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    header.mob .container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .menn {
        width: 100%;
        justify-content: center;
    }
    
    .men3, .men4 {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .main1 {
        height: 200px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
    }
}
