
/* =========================================
   1. CSS Reset & Base Styles
   ========================================= */
:root {
    /* Color Palette - Dark Theme (Betting/Casino Style) */
    --color-bg-body: #0b1118;
    --color-bg-card: #151e29;
    --color-bg-header: rgba(11, 17, 24, 0.95);
    
    --color-primary: #1e87f0;
    --color-primary-hover: #0f6ecd;
    --color-secondary: #ffce00;
    --color-secondary-hover: #eebb00;
    
    --color-text-main: #ffffff;
    --color-text-muted: #9aa5b1;
    --color-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-h1: clamp(2rem, 5vw, 3.5rem);
    --font-size-h2: clamp(1.5rem, 3vw, 2.5rem);
    --font-size-h3: clamp(1.25rem, 2vw, 1.75rem);
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --gap-sm: 0.5rem;
    --gap-md: 1.5rem;
    --gap-lg: 3rem;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-body);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Hide SVG Filters */
svg[style*="hidden"] {
    display: none !important;
}

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

a:hover {
    color: var(--color-secondary);
}

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

/* =========================================
   2. Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-main);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: var(--font-size-h1); text-align: center; margin-bottom: 2rem; background: linear-gradient(to right, #fff, #b0b0b0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: var(--font-size-h2); border-left: 4px solid var(--color-primary); padding-left: 1rem; margin-top: 3rem; }
h3 { font-size: var(--font-size-h3); color: var(--color-secondary); }

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

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

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

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

/* =========================================
   3. Layout & Grid System
   ========================================= */
.grid-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-lg);
    margin-top: 2rem;
}

.content-area {
    flex: 1;
    min-width: 0; /* Prevents flex overflow */
}

/* Sidebar Styling */
.widget-area {
    flex-basis: 320px;
    flex-shrink: 0;
}

.inside-right-sidebar .widget {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border: 1px solid var(--color-border);
}

/* WP Columns Handling using Flexbox */
.wp-block-columns {
    display: flex;
    gap: var(--gap-md);
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.wp-block-column {
    flex: 1;
    min-width: 280px;
}

/* Card Styling for Content Sections */
article .wp-block-columns, 
.entry-content > .wp-block-columns {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

article .wp-block-columns:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 135, 240, 0.3);
}

/* =========================================
   4. Header & Navigation
   ========================================= */
.site-header {
    background-color: var(--color-bg-header);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

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

.site-logo a {
    display: block;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Main Navigation */
.main-navigation ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-main);
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-secondary);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   5. Interactive Elements (Buttons & Links)
   ========================================= */
.button-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.winlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #0056b3);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(30, 135, 240, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.winlink::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;
}

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

.winlink:hover, .winlink:focus {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(30, 135, 240, 0.6);
    color: #fff;
}

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

/* Yellow Variant */
.winlink.yellow {
    background: linear-gradient(135deg, var(--color-secondary), #d4a000);
    color: #0b1118;
    box-shadow: 0 4px 15px rgba(255, 206, 0, 0.4);
}

.winlink.yellow:hover, .winlink.yellow:focus {
    box-shadow: 0 10px 25px rgba(255, 206, 0, 0.6);
    color: #000;
}

/* =========================================
   6. Tables & Forms
   ========================================= */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-bg-body);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

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

th {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

td {
    color: var(--color-text-muted);
}

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

tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--color-text-main);
}

/* =========================================
   7. Footer
   ========================================= */
.site-footer {
    background-color: #05080c;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    padding: 3rem 0;
}

.footer-widgets-container {
    margin-bottom: 2rem;
}

.footer-widget-1 ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.footer-widget-1 a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-widget-1 a:hover {
    color: var(--color-primary);
}

.copyright-bar {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

/* =========================================
   8. Mobile Navigation (Slideout)
   ========================================= */
.slideout-navigation {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: var(--color-bg-card);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    padding-top: 4rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.slideout-enabled .slideout-navigation {
    transform: translateX(0);
}

.slideout-menu {
    list-style: none;
    padding: 0 1.5rem;
}

.slideout-menu li {
    border-bottom: 1px solid var(--color-border);
}

.slideout-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.slideout-exit {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   9. Responsive Media Queries
   ========================================= */
@media (max-width: 900px) {
    .site-content {
        flex-direction: column;
    }
    
    .widget-area {
        flex-basis: 100%;
        width: 100%;
    }

    .main-navigation.sub-menu-right {
        display: none; /* Use mobile menu */
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    :root {
        --gap-lg: 2rem;
    }
    
    .inside-header {
        padding: 0 1rem;
    }

    .button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .winlink {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Make tables scrollable on mobile */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
