
/* =========================================
   1. CSS Reset & Base Setup
   ========================================= */
:root {
    /* Color Palette - Dark Gaming Theme */
    --clr-bg-main: #0f172a;       /* Deep Navy */
    --clr-bg-secondary: #1e293b;  /* Lighter Navy for cards/tables */
    --clr-primary: #3b82f6;       /* Electric Blue */
    --clr-primary-glow: rgba(59, 130, 246, 0.5);
    --clr-accent: #f59e0b;        /* Gold/Amber for CTA */
    --clr-accent-hover: #d97706;
    --clr-accent-glow: rgba(245, 158, 11, 0.5);
    
    --clr-text-main: #f8fafc;     /* Off-white */
    --clr-text-muted: #94a3b8;    /* Muted blue-grey */
    --clr-border: #334155;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --fs-base: 1rem;
    --lh-base: 1.6;

    /* Spacing & Sizes */
    --spacing-unit: 1rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --container-width: 75rem; /* 1200px */

    /* Animations */
    --trans-fast: 0.2s ease;
    --trans-smooth: 0.4s 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;
    height: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    line-height: var(--lh-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   2. Layout & Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--spacing-unit);
}

.row-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-center {
    text-align: center;
}

.col-xs-12 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.pa-0 {
    padding: 0 !important;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(1.25rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 var(--clr-accent-glow); }
    70% { box-shadow: 0 0 0 0.625rem rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* =========================================
   3. Header Section
   ========================================= */
.bg-casino {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    position: relative;
    overflow: hidden;
    padding-block: 4rem 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--clr-border);
}

/* Decorative background glow */
.bg-casino::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeIn 0.8s var(--trans-smooth);
}

header p.text {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--clr-text-muted);
    max-width: 60ch;
    margin-inline: auto;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s var(--trans-smooth) 0.2s backwards;
}

/* =========================================
   4. Buttons (Interactive)
   ========================================= */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px var(--clr-accent-glow);
    transition: transform var(--trans-fast), box-shadow var(--trans-fast), filter var(--trans-fast);
    user-select: none;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s var(--trans-smooth) 0.4s backwards, pulseGlow 2s infinite;
    margin-block: 1rem;
}

.button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 25px -5px var(--clr-accent-glow);
    filter: brightness(1.1);
}

.button:active {
    transform: translateY(1px) scale(0.98);
}

/* =========================================
   5. Content Section
   ========================================= */
.content {
    padding-block: 3rem;
}

/* Typography in content */
.content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--clr-primary);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--clr-accent);
}

.content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--clr-text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content p {
    margin-bottom: 1.25rem;
    color: var(--clr-text-muted);
    font-size: 1.0625rem;
    max-width: 75ch;
}

/* Lists */
.content ul {
    list-style: none;
    margin-bottom: 2rem;
    display: grid;
    gap: 1rem;
}

.content ul li {
    position: relative;
    padding-left: 2rem;
    color: var(--clr-text-muted);
}

.content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--clr-accent);
    font-weight: bold;
    font-size: 1.2em;
}

.content ul li strong {
    color: var(--clr-text-main);
}

/* =========================================
   6. Table Styles
   ========================================= */
table {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-block: 2rem;
    background: var(--clr-bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--clr-border);
}

table tr:first-child td {
    border-top: none;
}

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

table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    transition: background-color var(--trans-fast);
}

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

table td strong {
    color: var(--clr-text-main);
    font-weight: 600;
}

/* Responsive Table */
@media (max-width: 768px) {
    .content .col-xs-12 {
        overflow-x: auto;
    }
    table {
        min-width: 600px; /* Force scroll on small screens */
    }
}

/* =========================================
   7. Images
   ========================================= */
.img {
    margin-block: 2.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--clr-border);
    display: flex;
    justify-content: center;
}

.img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
}

.img:hover img {
    transform: scale(1.03);
}

/* Lazyload placeholder transition */
img.lazyload {
    opacity: 0;
    transition: opacity 0.3s;
}
img.lazyloaded {
    opacity: 1;
}

/* =========================================
   8. Footer
   ========================================= */
footer {
    margin-top: auto;
    background-color: var(--clr-bg-secondary);
    padding-block: 2rem;
    text-align: center;
    border-top: 1px solid var(--clr-border);
}

footer p {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* =========================================
   9. Form Elements (Generic)
   ========================================= */
/* Although not strictly in HTML, adding for completeness/future proofing */
input, select, textarea {
    background-color: var(--clr-bg-main);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--clr-text-main);
    font-family: inherit;
    width: 100%;
    transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px var(--clr-primary-glow);
}

/* =========================================
   10. Media Queries (Mobile)
   ========================================= */
@media (max-width: 768px) {
    :root {
        --fs-base: 0.9375rem;
        --spacing-unit: 1rem;
    }

    header {
        padding-block: 2.5rem 2rem;
    }

    .button {
        width: 100%; /* Full width button on mobile */
        max-width: 20rem;
    }

    table td {
        padding: 0.75rem 1rem;
    }

    .content h2 {
        border-left-width: 3px;
        padding-left: 0.75rem;
    }
}
