
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap');

/* --- 1. Reset & Variables --- */
:root {
    /* Colors */
    --color-bg-body: #0f172a; /* Deep dark blue */
    --color-bg-card: #1e293b; /* Lighter dark blue */
    --color-bg-header: #020617;
    --color-text-main: #e2e8f0;
    --color-text-muted: #94a3b8;
    
    --color-accent-primary: #fbbf24; /* Gold */
    --color-accent-secondary: #d97706; /* Darker Gold */
    --color-accent-glow: rgba(251, 191, 36, 0.4);
    
    --color-success: #22c55e;
    --color-danger: #ef4444;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
    --gradient-dark: linear-gradient(to bottom, #1e293b, #0f172a);

    /* Dimensions & Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    --container-width: 1200px;
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1.5rem;

    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    --font-size-base: 1rem;
    --font-size-h1: clamp(1.75rem, 5vw, 3rem);
    --font-size-h2: clamp(1.5rem, 3vw, 2.25rem);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::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: 1.6;
    overflow-x: hidden;
}

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

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

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

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

/* Flex Helper for the inline styled div handling */
div[style*="display:flex"] {
    gap: var(--spacing-lg);
    flex-wrap: wrap; /* Ensure wrapping on mobile */
}

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

/* Hide the first empty header if it's redundant, or style it minimally */
body > header:first-child {
    display: none; /* Based on HTML structure, the second header seems richer */
}

header.mob {
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

/* Logo Placeholder styling since img is missing */
.men1 a {
    display: block;
    width: 150px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: var(--border-radius-sm);
    position: relative;
    overflow: hidden;
}

.men1 a::before {
    content: 'JOYCASINO';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    letter-spacing: 0.1em;
    font-size: 1.2rem;
}

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

.men3, .men4 {
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-fast);
    cursor: pointer;
}

/* "Login" / "Mirror" buttons */
.men3 {
    border: 1px solid var(--color-accent-primary);
    color: var(--color-accent-primary);
}

.men3:hover {
    background-color: rgba(251, 191, 36, 0.1);
    box-shadow: 0 0 10px var(--color-accent-glow);
    transform: translateY(-2px);
}

/* "Registration" button */
.men4 {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: 0 4px 15px var(--color-accent-glow);
}

.men4:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-accent-glow);
}

/* --- 4. Hero & Main Banner --- */
.main {
    padding-top: var(--spacing-lg);
}

.joyl-slide {
    position: relative;
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Placeholder for main banner area */
.jou-abs {
    min-height: 400px;
    background: radial-gradient(circle at center, #2d3748 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main1 {
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="%23fbbf24" opacity="0.1"/></svg>');
    background-repeat: repeat;
    opacity: 0.5;
}

.jou-abs::after {
    content: 'WELCOME BONUS 200%';
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: var(--gradient-gold);
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 2;
    text-align: center;
}

/* --- 5. Content Area --- */
h1 {
    font-size: var(--font-size-h1);
    color: var(--color-text-main);
    margin-bottom: var(--spacing-lg) !important;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    margin-top: var(--spacing-xs);
    border-radius: 2px;
}

h2 {
    font-size: var(--font-size-h2);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-accent-primary);
}

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

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

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

/* Content Columns */
.joy-left {
    flex: 1;
    min-width: 0; /* Fix flex overflow */
}

/* Wrapper for main text content */
.main-left {
    background-color: var(--color-bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sidebar Styling */
.main-right {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Placeholder for sidebar banners */
.main-right a.href {
    display: block;
    height: 250px;
    background: linear-gradient(45deg, #1e293b, #334155);
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-accent-primary);
    transition: transform var(--transition-fast);
}

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

.main-right a.href::before {
    content: 'PLAY NOW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    color: var(--color-accent-primary);
}

/* --- 6. Buttons & Interactions --- */
.btn-box {
    display: flex;
    justify-content: center;
    margin: var(--spacing-lg) 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--gradient-gold);
    color: #0f172a;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    font-size: 1.125rem;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
    z-index: -1;
    transition: opacity var(--transition-smooth);
    opacity: 0;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(251, 191, 36, 0.5);
}

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

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

/* --- 7. Footer --- */
footer {
    background-color: #020617;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    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.875rem;
    opacity: 0.8;
}

/* --- 8. UI Elements & Scroll Top --- */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-accent-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all var(--transition-fast);
}

#scroller:hover {
    transform: translateY(-5px) rotate(360deg);
    background: #fff;
}

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

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

/* --- 9. Responsive Design --- */
@media (max-width: 992px) {
    div[style*="display:flex"] {
        flex-direction: column !important; /* Force stack */
    }
    
    .main-right {
        flex: auto;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .main-right a.href {
        flex: 1 1 300px;
    }
}

@media (max-width: 768px) {
    header.mob .container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .menn {
        width: 100%;
        justify-content: space-between;
    }
    
    .men3, .men4 {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        text-align: center;
        flex: 1;
    }
    
    .jou-abs {
        min-height: 250px;
    }
    
    h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    h1::after {
        margin: var(--spacing-sm) auto;
    }

    .main-left {
        padding: var(--spacing-md);
    }
    
    .btn {
        width: 100%;
    }
}

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

.main-left, .main-right, .joyl-slide {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Specific styling for tables if they appear in content (common in casinos) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
}

th, td {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid rgba(255,255,255,0.1);
}

th {
    background-color: rgba(255,255,255,0.05);
    color: var(--color-accent-primary);
}
