
/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    /* Color Palette - Dark Theme focus (Betting style) */
    --color-bg: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-bg-tertiary: #334155;
    
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-text-accent: #38bdf8;
    
    --color-primary: #0ea5e9;
    --color-primary-hover: #0284c7;
    --color-secondary: #6366f1;
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --gradient-hover: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    
    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    --container-width: 1200px;
    --header-height: 70px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 15px rgba(14, 165, 233, 0.3);
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Reset specific WP classes if needed */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-text-accent);
}

ul, ol {
    padding-left: 1.5rem;
}

/* =========================================
   2. Layout Utility Classes
   ========================================= */
.wrap {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.bgall {
    width: 100%;
}

/* =========================================
   3. Header Styles
   ========================================= */
header.bgall {
    background-color: var(--color-bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header_list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    height: 40px;
    width: auto;
}

/* Utility classes for visibility (matching Tailwind-like classes in HTML) */
.hidden { display: none !important; }
.block { display: block !important; }
.flex { display: flex !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.ml-auto { margin-left: auto !important; }

@media (min-width: 769px) {
    .md\:block { display: block !important; }
    .md\:hidden { display: none !important; }
}

/* Mobile Menu Toggle Button */
button[aria-label="mobile menu"] {
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: background 0.3s ease;
}

button[aria-label="mobile menu"]:hover {
    background: rgba(255,255,255,0.1);
}

button[aria-label="mobile menu"] svg {
    width: 28px;
    height: 28px;
}

/* Mobile Menu Drawer */
#mobileMenu {
    background-color: var(--color-bg-secondary) !important;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 200;
    padding-top: var(--header-height);
}

#mobileMenu .header-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#mobileMenu .menu-item a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: 500;
}

#mobileMenu .menu-item a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--color-primary);
    padding-left: 2rem; /* Slide effect */
}

/* =========================================
   4. Navigation (Desktop)
   ========================================= */
nav.bgall {
    background-color: var(--color-bg-tertiary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav .header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    gap: var(--spacing-md);
}

nav .menu-item {
    position: relative;
}

nav .menu-item a {
    display: block;
    padding: var(--spacing-sm) 0;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

nav .menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav .menu-item a:hover {
    color: var(--color-text);
}

nav .menu-item a:hover::after {
    width: 100%;
}

/* =========================================
   5. Main Content Styling
   ========================================= */
.cms-content {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
    flex: 1;
}

/* Typography in content */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-sm);
}

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

strong, b {
    color: var(--color-text);
}

/* Images in content */
.wp-block-image {
    margin: var(--spacing-lg) 0;
}

.wp-block-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.wp-block-image img:hover {
    transform: scale(1.01);
    filter: brightness(1.1);
}

/* Lists */
.wp-block-list {
    margin-bottom: var(--spacing-md);
}

.wp-block-list li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    color: var(--color-text-muted);
}

/* Special styling for numbered lists to look cooler */
ol.wp-block-list {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

ol.wp-block-list > li {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
}

ol.wp-block-list > li::before {
    content: counter(item);
    counter-increment: item;
    background: var(--gradient-primary);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* =========================================
   6. Buttons & Interactive Elements
   ========================================= */
/* Header Login Button */
.m_but {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    background: var(--gradient-primary);
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.m_but:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.5);
}

.m_but:active {
    transform: translateY(0);
}

/* Main Content Big Button */
.btn-box {
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.btn.btn-size-big {
    display: inline-block;
    background: var(--color-success);
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 1rem 3rem;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

.btn.btn-size-big:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.btn.btn-size-big:hover::before {
    left: 100%;
}

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

.copu {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* =========================================
   8. Utility / Helper Overrides for Alpine JS
   ========================================= */
[x-cloak] { 
    display: none !important; 
}

/* =========================================
   9. Responsive Design (Media Queries)
   ========================================= */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2.5rem;
    }

    /* Typography adjustments */
    html {
        font-size: 15px;
    }

    h1 {
        margin-top: var(--spacing-sm);
    }

    /* Mobile Menu overrides handled by utility classes, 
       but ensuring drawer looks good */
    #mobileMenu {
        width: 80%;
        max-width: 300px;
        background: var(--color-bg-secondary);
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
    }
    
    .wp-block-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .btn.btn-size-big {
        width: 100%;
        padding: 1rem;
    }
}

@media (min-width: 769px) {
    .header_list {
        padding: 0 var(--spacing-sm);
    }
}

/* =========================================
   10. Specific Promo Overlay Fixes 
   (Enhancing the existing inline styles via stronger selectors or just ensuring compatibility)
   ========================================= */
/* Note: The inline styles in the HTML are marked with !important, 
   so we can only affect things not covered there or by using high specificity.
   The request asked for a CSS file based on structure. 
   Since the overlay has its own style block in the HTML, this section 
   ensures the rest of the page blurs when needed or handles z-index properly. */

body.modal-open {
    overflow: hidden;
}
