
/* =========================================
   1. Reset & Variables (Modern Setup)
   ========================================= */
:root {
    /* Color Palette - Cyber/Gaming Theme */
    --color-bg-body: #0f172a; /* Dark Slate */
    --color-bg-card: #1e293b;
    --color-bg-header: rgba(15, 23, 42, 0.95);
    
    --color-primary: #f59e0b; /* Amber/Gold */
    --color-primary-hover: #d97706;
    --color-accent: #8b5cf6; /* Violet */
    --color-accent-hover: #7c3aed;
    
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-text-heading: #ffffff;
    
    --color-success: #10b981;
    --color-danger: #ef4444;

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    /* Effects */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(245, 158, 11, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-family);
    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;
    border-radius: var(--radius-sm);
}

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

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--spacing-sm);
}

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

h1 {
    font-size: clamp(1.75rem, 5vw, 3rem) !important; /* Override inline style */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    padding: var(--spacing-md) 0;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--color-primary);
    margin-top: var(--spacing-md);
    border-bottom: 2px solid var(--color-bg-card);
    padding-bottom: var(--spacing-xs);
}

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

/* Custom List Styling */
ul li, ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    color: var(--color-text-main);
}

ul li::marker {
    color: var(--color-primary);
}

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

.main {
    padding-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* Override inline flex style for responsiveness */
.joy-left + div[style*="display:flex"] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

@media (max-width: 900px) {
    .joy-left + div[style*="display:flex"] {
        flex-direction: column !important;
    }
}

/* =========================================
   4. Header & Navigation
   ========================================= */
header {
    background: var(--color-bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

/* Mobile/Secondary Header Styles */
.header.mob, header.mob {
    margin-top: 1px;
}

header.mob .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

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

.men3, .men4 {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

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

.men3:hover {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Registration Button */
.men4 {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: #fff;
    border: 1px solid transparent;
}

.men4:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* =========================================
   5. Hero Section & Slides
   ========================================= */
.joyl-slide {
    position: relative;
    min-height: 400px;
    background: linear-gradient(rgba(15, 23, 42, 0.6), var(--color-bg-body)), 
                url('https://via.placeholder.com/1920x600/1e293b/ffffff?text=Joycasino+Hero') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}

.jou-abs {
    position: relative;
    width: 100%;
    height: 100%;
}

.main1 {
    /* Placeholder for potential slider content */
    width: 100%;
    min-height: 300px;
}

/* =========================================
   6. Content Layout (Left/Right)
   ========================================= */
.joy-left {
    background: var(--color-bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-md);
}

/* Main Left Column */
.main-left {
    flex: 2;
    min-width: 0; /* Fix flex overflow */
}

/* Sidebar Right Column */
.main-right {
    flex: 1;
    min-width: 300px;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    align-self: flex-start;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Empty sidebar placeholder fix */
.main-right:empty {
    display: none;
}
.main-right a {
    display: block;
    min-height: 250px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    position: relative;
}
.main-right a::after {
    content: 'Banner Place';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.2);
}

/* =========================================
   7. Interactive Elements & Buttons
   ========================================= */
.btn-box {
    text-align: center;
    margin: var(--spacing-md) 0;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--color-primary), #fbbf24);
    color: #1e293b;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-size: 1.125rem;
    letter-spacing: 1px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4);
}

.btn:hover::before {
    left: 100%;
}

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

/* =========================================
   8. Form Elements (Generic Support)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-family: var(--font-family);
    transition: var(--transition);
    margin-bottom: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* =========================================
   9. Footer Styling
   ========================================= */
footer {
    background: #020617;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-lg);
    text-align: center;
}

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

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

.menu-fo a {
    color: var(--color-text-main);
    margin: 0 0.5rem;
}

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

/* =========================================
   10. Micro-components & Utils
   ========================================= */
/* Back to Top Button */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    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: var(--transition);
    opacity: 0.8;
}

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

.b-top-but {
    font-size: 0; /* Hide text, show icon instead via pseudo */
}

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

/* Tables Styling (if used in content) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-sm) 0;
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

th {
    background: rgba(0,0,0,0.2);
    color: var(--color-primary);
}

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

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

/* =========================================
   12. Responsive Adjustments
   ========================================= */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
    }

    header.mob .container {
        flex-direction: column;
        padding-bottom: 1rem;
    }

    .menn {
        width: 100%;
        justify-content: center;
    }

    .men3, .men4 {
        flex: 1;
        max-width: 150px;
    }

    h1 {
        padding: 1rem 0;
    }

    .joyl-slide {
        min-height: 250px;
        border-radius: 0;
    }
    
    .main-right {
        order: 2; /* Sidebar below content on mobile */
    }
    
    #scroller {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}
