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

:root {
    /* Color Palette - Dark Gaming Theme */
    --bg-body: #0f172a;      /* Deep Navy */
    --bg-card: #1e293b;      /* Slate 800 */
    --bg-header: #020617;    /* Slate 950 */
    
    --text-primary: #f1f5f9; /* Slate 100 */
    --text-secondary: #94a3b8; /* Slate 400 */
    
    --accent-primary: #f59e0b; /* Amber 500 */
    --accent-hover: #d97706;   /* Amber 600 */
    --accent-glow: rgba(245, 158, 11, 0.4);
    
    --btn-grad-start: #f59e0b;
    --btn-grad-end: #ea580c;
    
    --success: #10b981;
    --danger: #ef4444;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --h1-size: clamp(1.75rem, 5vw, 2.5rem);
    --h2-size: clamp(1.5rem, 4vw, 2rem);
    --body-size: 1rem;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 4.5rem;
    --border-radius: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

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

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

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

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

a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 8px var(--accent-glow);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

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

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1, h2, h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: var(--h1-size);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 2rem;
}

h2 {
    font-size: var(--h2-size);
    margin-top: 2.5rem;
    border-left: 4px solid var(--accent-primary);
    padding-left: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* =========================================
   4. HEADER STYLES
   ========================================= */
header {
    background-color: var(--bg-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

/* Consolidating headers for cleaner look */
header .container, 
header.mob .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Area Styling */
.men1 a {
    display: block;
    width: 160px;
    height: 50px;
    background: url('https://placehold.co/160x50/f59e0b/fff?text=JOYCASINO') no-repeat center/contain; /* Placeholder for missing img */
    background-size: contain;
}

/* Navigation Menu */
.menn {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Nav Buttons */
.men3, .men4 {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

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

.men3:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.men4 {
    background: linear-gradient(135deg, var(--btn-grad-start), var(--btn-grad-end));
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

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

/* Handle duplicate headers - hide the empty one on desktop if .mob is present */
header:not(.mob) {
    display: none;
}

/* =========================================
   5. HERO & SLIDER SECTION
   ========================================= */
.joyl-slide {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, var(--bg-header), var(--bg-body));
    padding: 2rem 0;
    overflow: hidden;
}

.jou-abs {
    position: relative;
    z-index: 1;
}

.main1 {
    width: 100%;
    height: 350px; /* Default height */
    background: linear-gradient(45deg, #282d3c, #1a1e29);
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Decorative element for the banner placeholder */
.main1::after {
    content: 'WELCOME BONUS 200%';
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    transform: rotate(-5deg);
}

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

/* =========================================
   6. MAIN CONTENT LAYOUT
   ========================================= */
.main {
    padding-bottom: 4rem;
}

/* Targeting the inline flex style container */
div[style*="display:flex"] {
    display: grid !important; /* Override inline style */
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* Left Content Column */
.joy-left {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.main-left {
    width: 100%;
}

/* Right Sidebar Column */
.main-right {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-primary);
}

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

.main-right .href {
    display: block;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.main-right .href:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
}

/* =========================================
   7. COMPONENTS (Buttons, Lists)
   ========================================= */
/* Big CTA Button */
.btn-box {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-size-big {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--btn-grad-start), var(--btn-grad-end));
    color: white;
    box-shadow: 0 10px 25px -5px var(--accent-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-size-big::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--btn-grad-end), var(--btn-grad-start));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-size-big:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px var(--accent-glow);
    color: white;
}

.btn-size-big:hover::before {
    opacity: 1;
}

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

/* Lists Styling */
ul li, ol li {
    position: relative;
    padding-left: 0.5rem;
}

ul li::marker {
    color: var(--accent-primary);
    font-size: 1.2em;
}

/* Table styling (if any generic tables appear) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

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

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

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background-color: var(--bg-header);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

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

/* Scroll to top button */
#scroller {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0.8;
}

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

.b-top-but {
    display: none; /* Hide text, use icon logic or bg image usually, but here just color block */
}

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

/* =========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    div[style*="display:flex"] {
        grid-template-columns: 1fr; /* Stack sidebar below content */
    }
    
    .main-right {
        position: static;
        margin-top: 2rem;
    }
}

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

    /* Header Mobile Adjustments */
    header.mob .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menn {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .men3, .men4 {
        flex: 1;
        text-align: center;
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    /* Hero */
    .main1 {
        height: 200px;
    }

    .joy-left {
        padding: 1.25rem;
    }
    
    .btn-size-big {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Scroll to top adjustment */
    #scroller {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

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

.main-left p, .main-left h2, .main-left ul {
    animation: fadeIn 0.6s ease-out forwards;
}

.btn-box {
    animation: fadeIn 0.8s ease-out forwards;
}
