
/* ==========================================================================
   1. CSS Variables & Reset
   ========================================================================== */
:root {
    /* Colors */
    --color-bg-body: #0f172a; /* Deep Navy */
    --color-bg-card: #1e293b; /* Lighter Navy */
    --color-bg-header: rgba(15, 23, 42, 0.95);
    
    --color-primary: #f59e0b; /* Amber/Gold */
    --color-primary-hover: #d97706;
    --color-secondary: #06b6d4; /* Cyan */
    
    --color-text-main: #f8fafc; /* White/Off-white */
    --color-text-muted: #94a3b8; /* Light Grey */
    --color-text-dark: #0f172a;
    
    --color-border: #334155;
    --color-success: #10b981;
    
    /* Typography */
    --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing & Sizes */
    --container-width: 1200px;
    --header-height: 70px;
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1.5rem;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-neon: 0 0 15px rgba(245, 158, 11, 0.4);
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease-in-out;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    /* Override inline style if necessary */
    margin-bottom: 1.5rem !important; 
}

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

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

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

li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   3. Layout & Structure
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Fix flex direction inline style for mobile via attribute selector */
div[style*="display:flex"] {
    gap: 2rem;
}

/* Main Content Area */
.joy-left {
    flex: 3;
    min-width: 0; /* Flexbox text overflow fix */
}

.main-right {
    flex: 1;
    min-width: 250px;
}

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

/* Logo Area (.men1 is vague, adding styles to make it visible) */
.men1 {
    display: flex;
    align-items: center;
    height: 100%;
}

.men1 a {
    display: block;
    width: 150px;
    height: 40px;
    background: url('path-to-logo.png') no-repeat center/contain;
    /* Fallback if no image */
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    position: relative;
}

.men1 a::after {
    content: 'JOYCASINO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    color: var(--color-text-main);
    font-size: 1.25rem;
    letter-spacing: 1px;
}

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

/* Navigation Links in Mobile Header */
.menn {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.men3, .men4 {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-base);
    text-align: center;
}

.men3 {
    background-color: rgba(255,255,255,0.1);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.men3:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
}

.men4 {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-text-dark);
    box-shadow: var(--shadow-neon);
}

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

/* ==========================================================================
   5. Hero & Banner Sections
   ========================================================================== */
.joyl-slide {
    position: relative;
    padding: 3rem 0;
    margin-bottom: 2rem;
    background: radial-gradient(circle at center, #2e3b4e 0%, var(--color-bg-body) 100%);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-align: center;
}

/* Abstract placeholder for hero content */
.main1 {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--color-primary), #eab308);
    color: var(--color-text-dark);
    font-weight: 800;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.7);
    color: var(--color-text-dark);
}

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

/* Sidebar Box */
.main-right {
    background-color: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    align-self: flex-start;
}

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

/* ==========================================================================
   7. Tables
   ========================================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

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

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

/* ==========================================================================
   9. Utilities & Components
   ========================================================================== */
/* Scroll to Top */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    transition: var(--transition-base);
    font-size: 0; /* Hide text, use icon ideally */
}

#scroller::before {
    content: '▲';
    font-size: 1.2rem;
}

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

/* ==========================================================================
   10. Responsive Design (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Hide desktop header, show mobile header elements */
    header:not(.mob) {
        display: none;
    }
    
    header.mob {
        display: block;
        padding-bottom: 1rem;
    }
    
    .header.mob .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Force column layout for the flex container with inline styles */
    div[style*="display:flex"] {
        flex-direction: column !important;
    }

    .main-right {
        width: 100%;
        margin-top: 2rem;
    }

    /* Adjust Tables for small screens */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    h1 {
        font-size: 2rem;
        text-align: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

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

.main > * {
    animation: fadeIn 0.6s ease-out forwards;
}
