/*
Theme Name: Epicbet Chile
Template: astra
Theme URI: https://epicbetchileno.com/
Author: CrossBrand
Description: Astra child theme for Epicbet Chile
Version: 1.0.0
Text Domain: epicbet
*/

/* ==========================================================================
   Epicbet Chile — Brand Design
   Source: epicbet.com (scraped 2026-03-24)
   ========================================================================== */

:root {
    /* Backgrounds — dark navy */
    --ep-bg:              #111627;
    --ep-bg-secondary:    #232A43;
    --ep-surface:         #1B223C;
    --ep-surface-hover:   #252C46;
    --ep-input-bg:        #2F3756;

    /* Accent — lime green */
    --ep-accent-brand:    #C5E900;
    --ep-accent:          #AFC800;
    --ep-accent-light:    #E7FF75;
    --ep-accent-contrast: #000000;

    /* Secondary */
    --ep-gold:            #F4C870;
    --ep-red:             #E42760;
    --ep-green:           #0EFF7B;
    --ep-info:            #7B5FFF;

    /* Text */
    --ep-text:            #FFFFFF;
    --ep-text-content:    #E8E8F8;
    --ep-text-secondary:  #C1C8D7;
    --ep-text-muted:      rgba(193, 200, 215, 0.8);

    /* Borders */
    --ep-border:          #394360;
    --ep-border-light:    #3f4a69;

    /* Spacing */
    --ep-radius:          16px;
    --ep-radius-sm:       8px;
    --ep-radius-lg:       32px;
    --ep-gap:             16px;
    --ep-section-gap:     48px;

    /* Shadows */
    --ep-shadow:          0px 2px 2px 0px rgba(0,0,0,0.5), 0px 3px 6px 3px rgba(0,0,0,0.33);
    --ep-shadow-hover:    0px 2px 2px 0px rgba(0,0,0,0.5), 0px 3px 6px 3px rgba(0,0,0,0.33), 0px 6px 36px 6px rgba(0,0,0,0.25);

    /* Transitions */
    --ep-transition:      200ms ease;
}

/* --- Global dark theme --- */
body {
    background-color: var(--ep-bg) !important;
    color: var(--ep-text-content) !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* --- Header --- */
.ast-primary-header-bar,
.ast-main-header-bar-alignment,
header.site-header {
    background-color: var(--ep-surface) !important;
    border-bottom: 1px solid var(--ep-border) !important;
}

.site-header .site-title a,
.site-header .site-title,
.ast-site-identity .site-title a {
    color: var(--ep-text) !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
}

/* --- Navigation --- */
.ast-header-break-point .ast-mobile-header-wrap,
.main-header-menu {
    background-color: var(--ep-surface) !important;
}

.main-header-menu a,
.ast-header-break-point .main-navigation ul li a {
    color: var(--ep-text-secondary) !important;
    font-family: 'Poppins', sans-serif !important;
    transition: color var(--ep-transition) !important;
}

.main-header-menu a:hover,
.main-header-menu .current-menu-item a {
    color: var(--ep-accent-brand) !important;
}

/* --- Content area --- */
.ast-container,
.site-content {
    background-color: var(--ep-bg) !important;
}

.entry-content,
.entry-content p {
    color: var(--ep-text-content) !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--ep-text) !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
}

.entry-content a {
    color: var(--ep-accent) !important;
    text-decoration: underline !important;
}

.entry-content a:hover {
    color: var(--ep-accent-light) !important;
}

/* --- Cards / surfaces --- */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .comment-respond,
.ast-separate-container .ast-comment-list li {
    background-color: var(--ep-surface) !important;
    border: 1px solid var(--ep-border) !important;
    border-radius: var(--ep-radius) !important;
    box-shadow: var(--ep-shadow) !important;
}

/* --- Buttons (CTA lime green) --- */
.ast-button,
.wp-block-button__link,
button,
input[type="submit"],
.entry-content .wp-block-button__link {
    background-color: var(--ep-accent-brand) !important;
    color: var(--ep-accent-contrast) !important;
    border: none !important;
    border-radius: var(--ep-radius-lg) !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    transition: all var(--ep-transition) !important;
}

.ast-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--ep-accent-light) !important;
    color: var(--ep-accent-contrast) !important;
    box-shadow: var(--ep-shadow-hover) !important;
}

/* --- Footer --- */
.ast-footer-overlay,
.site-footer,
footer.site-footer,
.ast-small-footer {
    background-color: var(--ep-bg) !important;
    border-top: 1px solid var(--ep-border) !important;
}

.site-footer,
.site-footer a,
.ast-small-footer a,
.ast-footer-copyright {
    color: var(--ep-text-muted) !important;
}

.site-footer a:hover {
    color: var(--ep-accent-brand) !important;
}

/* --- Sidebar / Widgets --- */
.widget,
.sidebar .widget {
    background-color: var(--ep-surface) !important;
    border: 1px solid var(--ep-border) !important;
    border-radius: var(--ep-radius) !important;
    padding: var(--ep-gap) !important;
}

.widget-title,
.widget h2 {
    color: var(--ep-text) !important;
    font-family: 'Poppins', sans-serif !important;
}

/* --- Forms / Inputs --- */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
    background-color: var(--ep-input-bg) !important;
    color: var(--ep-text) !important;
    border: 1px solid var(--ep-border) !important;
    border-radius: var(--ep-radius-sm) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--ep-text-muted) !important;
}

/* --- Breadcrumbs --- */
.ast-breadcrumbs,
.rank-math-breadcrumb {
    color: var(--ep-text-muted) !important;
}

.rank-math-breadcrumb a {
    color: var(--ep-text-secondary) !important;
}

.rank-math-breadcrumb a:hover {
    color: var(--ep-accent) !important;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--ep-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--ep-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ep-border-light);
}

/* --- Selection --- */
::selection {
    background: var(--ep-accent-brand);
    color: var(--ep-accent-contrast);
}

/* ==========================================================================
   Custom Header (epicbet.com clone)
   ========================================================================== */

/* Hide default Astra header */
.ast-primary-header-bar,
header.site-header,
.ast-mobile-header-wrap {
    display: none !important;
}

/* Hide default Astra footer */
.site-footer,
.ast-small-footer,
footer.site-footer {
    display: none !important;
}

/* --- Epicbet Header --- */
.ep-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--ep-surface);
    border-bottom: 1px solid var(--ep-border);
    height: 64px;
}

.ep-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 32px;
}

.ep-header__logo svg {
    display: block;
    height: 36px;
    width: auto;
}

.ep-header__nav .ep-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.ep-header__nav .ep-nav-list li a {
    display: block;
    padding: 20px 18px;
    color: var(--ep-text-secondary);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 200ms ease;
    border-bottom: 2px solid transparent;
}

.ep-header__nav .ep-nav-list li a:hover,
.ep-header__nav .ep-nav-list li.current-menu-item a {
    color: var(--ep-accent-brand);
    border-bottom-color: var(--ep-accent-brand);
}

.ep-header__cta {
    margin-left: auto;
}

.ep-cta--sm {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 32px;
}

/* --- Burger menu --- */
.ep-header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.ep-header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ep-text);
    margin: 5px 0;
    transition: all 200ms ease;
    border-radius: 1px;
}

/* --- Mobile Nav Overlay --- */
.ep-mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ep-bg-secondary);
    z-index: 998;
    padding: 24px;
    overflow-y: auto;
}

.ep-mobile-nav.active {
    display: block;
}

.ep-mobile-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ep-mobile-nav__list li a {
    display: block;
    padding: 14px 0;
    color: var(--ep-text);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--ep-border);
}

.ep-mobile-nav__list li a:hover {
    color: var(--ep-accent-brand);
}

.ep-mobile-nav .ep-cta {
    display: block;
    text-align: center;
    margin-top: 24px;
}

/* --- Footer (epicbet.com style) --- */
.ep-footer {
    background: var(--ep-bg);
    border-top: 1px solid var(--ep-border);
    padding: 48px 24px 24px;
    margin-top: 64px;
}

.ep-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
}

.ep-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.ep-footer__title {
    color: var(--ep-text);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.ep-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ep-footer__links li {
    margin-bottom: 8px;
}

.ep-footer__links li a {
    color: var(--ep-text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 200ms ease;
}

.ep-footer__links li a:hover {
    color: var(--ep-accent-brand);
}

.ep-footer__rg {
    padding: 20px 0;
    border-top: 1px solid var(--ep-border);
    color: var(--ep-text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.ep-footer__copy {
    color: var(--ep-text-muted);
    font-size: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--ep-border);
}

/* --- Main content area --- */
.ep-main {
    min-height: 60vh;
}

/* Astra content overrides for dark theme */
.ast-container {
    background: transparent !important;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
    background: var(--ep-surface) !important;
    border: 1px solid var(--ep-border) !important;
    border-radius: 16px !important;
}

/* --- Responsive --- */
@media (max-width: 921px) {
    .ep-header__nav,
    .ep-header__cta {
        display: none;
    }
    .ep-header__burger {
        display: block;
    }
    .ep-footer__columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 544px) {
    .ep-header__inner {
        padding: 0 16px;
    }
    .ep-header__logo svg {
        height: 28px;
    }
}
