
/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Color Palette - Modern 1xBet Inspired */
    --color-primary: #0d3b66; /* Deep Navy */
    --color-primary-light: #185a9d;
    --color-accent: #28a745; /* Action Green */
    --color-accent-hover: #218838;
    --color-text-main: #1f2937;
    --color-text-light: #6b7280;
    --color-bg-body: #f8fafc;
    --color-bg-card: #ffffff;
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --line-height-base: 1.65;
    --text-scale-h1: clamp(1.75rem, 5vw, 2.5rem);
    --text-scale-h2: clamp(1.35rem, 4vw, 1.85rem);
    --text-scale-body: 1rem;

    /* Spacing & Layout */
    --wrap-width: 75rem; /* ~1200px */
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 2rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(40, 167, 69, 0.4);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   2. LAYOUT UTILITIES
   ========================================= */
.wrap {
    width: 100%;
    max-width: var(--wrap-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

.bgall {
    width: 100%;
    position: relative;
}

/* =========================================
   3. HEADER STYLES
   ========================================= */
header.bgall {
    background-color: var(--color-bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.header_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.custom-logo-link:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.custom-logo {
    width: auto;
    height: 2.5rem; /* Limit logo height */
    object-fit: contain;
}

/* Header Login Button */
.m_but {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}

.m_but:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   4. MAIN CONTENT TYPOGRAPHY & STRUCTURE
   ========================================= */
.cms-content {
    background-color: var(--color-bg-card);
    margin-top: var(--gap-lg);
    margin-bottom: var(--gap-lg);
    padding: var(--gap-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 50rem; /* Optimal reading width */
}

/* Headings */
h1, h2, h3 {
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: var(--text-scale-h1);
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: var(--text-scale-h2);
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

/* Paragraphs & Text */
p {
    font-size: var(--text-scale-body);
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
}

strong {
    color: var(--color-primary);
    font-weight: 700;
}

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

ul li, ol li {
    margin-bottom: 0.5rem;
    position: relative;
}

/* Custom list markers for UL */
ul.wp-block-list li::marker, 
ul li::marker {
    color: var(--color-accent);
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--color-accent);
    background: linear-gradient(to right, #f0fdf4, #ffffff);
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--color-text-main);
}

/* =========================================
   5. INTERACTIVE ELEMENTS (BUTTONS)
   ========================================= */
.wp-block-buttons {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.btn-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-accent), #15803d);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

/* Shiny effect on button */
.btn::after {
    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:hover::after {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: linear-gradient(135deg, #2dc950, #179344);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
    outline: 3px solid rgba(40, 167, 69, 0.4);
    outline-offset: 2px;
}

/* =========================================
   6. IMAGES & MEDIA
   ========================================= */
figure.wp-block-image {
    margin: 2rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

figure img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

/* =========================================
   7. FOOTER
   ========================================= */
footer.bgall {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
    margin-top: auto;
}

.copu {
    text-align: center;
    font-size: 0.875rem;
}

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

.cms-content > * {
    animation: fadeIn 0.6s ease-out forwards;
}

/* =========================================
   9. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    :root {
        --gap-lg: 1.5rem;
        --radius-md: 0.5rem;
    }

    .header_list {
        height: 3.5rem;
    }

    .m_but {
        padding: 0.35rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Utility class used in HTML */
    .hidden.md\:block {
        /* If original HTML uses Tailwind-like classes but no CSS is loaded, 
           we handle it. If we want it shown on mobile, remove this. 
           Assuming standard behavior: show button on mobile too for conversion. */
        display: inline-flex !important; 
    }
    
    .cms-content {
        margin-top: 1rem;
        padding: 1.25rem;
        border-radius: 0;
        box-shadow: none;
    }

    h1 {
        text-align: left;
    }

    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

/* =========================================
   10. FORM ELEMENTS (Generic Fallback)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition-base);
    background-color: #fff;
}

input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.1);
}
