
/* =========================================
   1. CSS Reset & Variables
   ========================================= */
:root {
    /* Colors - Dark Casino Theme */
    --color-bg-body: #0b0e14;
    --color-bg-card: #151a25;
    --color-bg-header: rgba(11, 14, 20, 0.95);
    
    --color-primary: #ffc107; /* Gold */
    --color-primary-hover: #ffdb4d;
    --color-secondary: #28a745; /* Success Green */
    --color-accent: #e91e63; /* Pink/Red for urgency */
    
    --color-text-main: #f0f2f5;
    --color-text-muted: #94a3b8;
    --color-border: #2d3748;

    /* Typography */
    --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Spacing & Sizes */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius: 12px;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 15px rgba(255, 193, 7, 0.3);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(to right, #ffc107, #ff8f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-top: var(--spacing-md);
    border-left: 4px solid var(--color-secondary);
    padding-left: var(--spacing-sm);
}

h3 {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-top: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

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

a:hover {
    color: var(--color-primary-hover);
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

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

li {
    margin-bottom: 0.5rem;
}

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

/* Flex utilities for existing inline styles */
[style*="display:flex"] {
    gap: var(--spacing-md);
}

/* Sidebar Layout Fix */
.joy-left {
    flex: 3;
    min-width: 0; /* Prevent flex overflow */
}

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

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

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

/* Logo Area */
.men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background-color: var(--color-bg-card); /* Placeholder for missing logo */
    background-image: url('https://placehold.co/150x50/1a1e29/ffc107?text=CASINO+X'); /* Fallback */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Navigation Menu */
.menn {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Navigation Buttons */
.men3, .men4 {
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
}

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

.men3:hover {
    background: rgba(255, 193, 7, 0.1);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

/* Registration Button (Prominent) */
.men4 {
    background: linear-gradient(135deg, var(--color-secondary), #218838);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.men4:hover {
    filter: brightness(1.1);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

/* Handle Mobile Header Visibility */
header:not(.mob) {
    display: block;
}
header.mob {
    display: none;
}

/* =========================================
   5. Hero Section (Slider/Banner)
   ========================================= */
.joyl-slide {
    position: relative;
    background: radial-gradient(circle at center, #2c3e50, var(--color-bg-body));
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decorative elements for hero */
.joyl-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIiBmaWxsLW9wYWNpdHk9IjAuMDUiIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik0wIDBoNDB2NDBIMHoiIGZpbGw9Im5vbmUiLz48cGF0aCBkPSJNMjAgMjBsMTAgMTBMMjAgNDAgMTAgMzB6TTIwIDBsMTAgMTBMMjAgMjAgMTAgMTB6Ii8+PC9zdmc+');
    opacity: 0.1;
}

.jou-abs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* =========================================
   6. Content Styles
   ========================================= */
.main {
    padding-bottom: var(--spacing-lg);
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--spacing-md) 0;
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    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: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

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

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

/* Buttons in Content */
.btn-box {
    margin: var(--spacing-md) 0;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    background: linear-gradient(45deg, #ffc107, #ffeb3b, #ffc107);
    background-size: 200% auto;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
    transition: 0.5s;
    letter-spacing: 1px;
}

.btn:hover {
    background-position: right center;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.6);
}

/* FAQ Section Styling */
div[itemscope][itemtype="https://schema.org/FAQPage"] {
    display: grid;
    gap: 1rem;
    margin-top: var(--spacing-md);
}

div[itemprop="mainEntity"] {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition-base);
}

div[itemprop="mainEntity"]:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

div[itemprop="mainEntity"] strong em {
    font-style: normal;
    font-size: 1.1rem;
    color: var(--color-text-main);
    display: block;
    margin-bottom: 0.5rem;
}

div[itemprop="acceptedAnswer"] p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* =========================================
   7. Footer Styling
   ========================================= */
footer {
    background-color: #05070a;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

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

.menu-fo {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =========================================
   8. Scroll to Top Button
   ========================================= */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

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

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

#scroller::after {
    content: '↑';
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: bold;
}

#scroller:hover::after {
    color: #000;
}

/* =========================================
   9. Media Queries (Responsive Design)
   ========================================= */
@media screen and (max-width: 992px) {
    /* Hide desktop header, show mobile header structure if needed, 
       but here we adapt the existing header for flexibility */
    
    [style*="display:flex"] {
        flex-direction: column !important; /* Force vertical stack for layout */
    }
    
    .joy-left, .main-right {
        width: 100%;
        flex: none;
    }
    
    .main-right {
        margin-top: var(--spacing-md);
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* If HTML structure swaps headers */
    header { display: none; }
    header.mob { 
        display: block; 
        padding: 10px 0;
    }
    
    header.mob .container {
        flex-direction: column;
        align-items: center;
    }

    .menn {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .men3, .men4 {
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .men3 div, .men4 div {
        /* Fix for divs inside anchors */
        width: 100%;
    }

    /* Table Scroll on mobile */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .btn {
        width: 100%;
    }
}

/* =========================================
   10. Form Elements (Generic)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    font-family: inherit;
    transition: var(--transition-base);
    margin-bottom: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   11. Helper Classes
   ========================================= */
.text-center { text-align: center; }
.hidden { display: none; }

/* Image Filters (from body class) */
.image-filters-enabled img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.image-filters-enabled img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}
