/* ==========================================================================
   Epicbet Chile — Brand Shell + Content Island
   Layout: full-width vertical (epicbet.com clone)
   ========================================================================== */

/* --- Full-width page (no Astra sidebar/container) --- */
.ep-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--ep-bg);
}
.home .ast-container,
.home .site-content {
    max-width: 100% !important;
    padding: 0 !important;
}

/* --- HIDDEN duplicates --- */
.ep-promo,
.ep-promo__features,
.ep-catnav,
.ep-casino-nav { display: none !important; }

/* ==================================================================
   BLOCK 1: Category Icons Row (epicbet.com top bar)
   ================================================================== */
.ep-cats {
    background: #151b2e;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 0 24px;
    width: 100%;
}
.ep-cats__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.ep-cats__inner::-webkit-scrollbar { display: none; }
.ep-cats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    min-width: 80px;
    text-decoration: none;
    color: rgba(255,255,255,.65);
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .15s;
    border: 1px solid transparent;
    border-radius: 8px;
}
.ep-cats__item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
    flex-shrink: 0;
}
.ep-cats__item:hover { color: #fff; }
.ep-cats__item--active {
    color: #c8ff1a;
    border-color: #c8ff1a;
    border-radius: 8px;
}

/* ==================================================================
   BLOCK 2: Promo Banners (horizontal scroll)
   ================================================================== */
.ep-promos {
    padding: 16px 24px;
    background: var(--ep-bg);
}
.ep-promos__scroll {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.ep-promos__scroll::-webkit-scrollbar { display: none; }
/* Promo cards: 4-col grid, full bg image, text on right half */
.ep-promos__grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.ep-pc {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #394360;
    transition: border-color .2s;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    min-height: 170px;
    position: relative;
}
.ep-pc:hover { border-color: #c8ff1a; }
.ep-pc__text {
    margin-left: 38%;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 170px;
    background: rgba(27,34,60,.88);
}
.ep-pc__text p { flex: 1; }
.ep-pc__btn { margin-top: auto; }
.ep-pc__text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    text-transform: uppercase;
    line-height: 1.25;
}
.ep-pc__text p {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,.6);
    margin: 0 0 14px;
    line-height: 1.4;
}
.ep-pc__btn {
    display: inline-block;
    background: #c8ff1a;
    color: #0b1120;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 6px;
    width: fit-content;
    text-transform: uppercase;
}

/* ==================================================================
   BLOCK 3 & 4: Section Header (EPIC TITLES, NEW, etc.)
   ================================================================== */
.ep-sec {
    padding: 20px 24px;
    background: var(--ep-bg);
}
.ep-sec__head {
    max-width: 1400px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ep-sec__title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ep-sec__title svg { fill: #c8ff1a; }
.ep-sec__nav {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ep-sec__count {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,.5);
}
.ep-sec__arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================================================================
   EPIC TITLES Grid (masonry-like: 2 big + 4 small per row)
   ================================================================== */
.ep-epic {
    max-width: 1400px;
    margin: 0 auto;
}
.ep-epic__row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}
.ep-epic__card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}
.ep-epic__card--big {
    grid-column: span 2;
    grid-row: span 1;
}
.ep-epic__card--sm {
    grid-column: span 1;
}
.ep-epic__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
}
.ep-epic__card--big img {
    aspect-ratio: 1/1;
}
.ep-epic__play {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background: #c8ff1a;
    color: #0b1120;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity .2s;
}
.ep-epic__card:hover .ep-epic__play { opacity: 1; }
.ep-epic__card:hover img { transform: scale(1.03); }
.ep-epic__card img { transition: transform .25s; }

/* ==================================================================
   NEW Grid (6 columns, small square tiles)
   ================================================================== */
.ep-grid6 {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.ep-tile {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}
.ep-tile img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform .25s;
}
.ep-tile:hover img { transform: scale(1.05); }
.ep-tile__play {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    background: #c8ff1a;
    color: #0b1120;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity .2s;
}
.ep-tile:hover .ep-tile__play { opacity: 1; }

/* ==================================================================
   Content Island (WP content renders inside brand shell)
   ================================================================== */
.ep-content-island {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    color: var(--ep-text-content);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
}
.ep-content-island figure.wp-block-image { margin: 24px 0; }
.ep-content-island figure.wp-block-image img { border-radius: 16px; display: block; width: 100%; height: auto; }
.ep-content-island h1 { font-size: 2rem; font-weight: 700; color: var(--ep-text); margin-bottom: 16px; }
.ep-content-island h2 { font-size: 1.5rem; font-weight: 700; color: var(--ep-text); margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #c8ff1a; }
.ep-content-island h3 { font-size: 1.25rem; font-weight: 600; color: var(--ep-text); margin: 24px 0 8px; }
.ep-content-island p { margin-bottom: 16px; color: var(--ep-text-content); }
.ep-content-island a { color: var(--ep-accent); text-decoration: underline; }
.ep-content-island a:hover { color: var(--ep-accent-light); }

/* ==================================================================
   CTA Buttons (brand style — pill, lime green)
   ================================================================== */
.ep-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: #c8ff1a;
    color: #0b1120;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 32px;
    text-decoration: none;
    transition: all .2s;
    border: none;
    cursor: pointer;
}
.ep-cta:hover { background: #d4ff4a; }
.ep-cta--sm { padding: 8px 20px; font-size: 14px; }

/* ==================================================================
   FAQ Accordion
   ================================================================== */
.ep-faq-section { max-width: 1100px; margin: 48px auto; padding: 0 24px; }
.ep-faq-item { background: var(--ep-surface); border: 1px solid var(--ep-border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.ep-faq-item summary { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--ep-text); list-style: none; }
.ep-faq-item summary::marker { display: none; }
.ep-faq-item[open] summary { border-bottom: 1px solid var(--ep-border); }
.ep-faq-item .ep-faq-answer { padding: 16px 20px; color: var(--ep-text-content); }

/* ==================================================================
   Active Nav Highlight (pure CSS, cache-safe)
   ================================================================== */
body.home .ep-nav-list a[href="/"],
body.page-id-8 .ep-nav-list a[href="/apuestas-deportivas/"],
body.page-id-9 .ep-nav-list a[href="/casino-en-vivo/"],
body.page-id-7 .ep-nav-list a[href="/tragamonedas/"],
body.page-id-10 .ep-nav-list a[href="/bonos/"],
body.page-id-11 .ep-nav-list a[href="/app/"],
body.page-id-12 .ep-nav-list a[href="/es-confiable/"] {
    color: var(--ep-accent-brand) !important;
    border-bottom-color: var(--ep-accent-brand) !important;
}

/* ==================================================================
   Hero Banner (sub-pages — text left, image right)
   ================================================================== */
.ep-hero {
    width: 100%;
    max-width: 1400px;
    margin: 16px auto 0;
    padding: 0 24px;
}
.ep-hero__card {
    display: flex;
    align-items: stretch;
    background: #1B223C;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #394360;
    min-height: 280px;
}
.ep-hero__text {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ep-hero__h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    text-transform: uppercase;
    line-height: 1.15;
}
.ep-hero__sub {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
    margin: 0 0 28px;
}
.ep-hero__cta {
    display: inline-block;
    background: #c8ff1a;
    color: #0b1120;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .15s;
    width: fit-content;
}
.ep-hero__cta:hover { background: #d4ff4a; }
.ep-hero__img {
    width: 38%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==================================================================
   Breadcrumbs
   ================================================================== */
.ep-breadcrumbs { max-width: 1100px; margin: 16px auto 0; padding: 0 24px; font-size: 13px; color: var(--ep-text-muted); }
.ep-breadcrumbs a { color: var(--ep-text-secondary); text-decoration: none; }
.ep-breadcrumbs a:hover { color: var(--ep-accent); }

/* ==================================================================
   Footer (pixel-perfect epicbet.com clone)
   ================================================================== */
.ep-ft {
    background: #0b1120;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 40px 24px 24px;
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
}
.ep-ft__inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* Nav Columns */
.ep-ft__nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
.ep-ft__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ep-ft__heading {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    text-transform: none;
}
.ep-ft__col li {
    margin-bottom: 6px;
}
.ep-ft__col a {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color .15s;
}
.ep-ft__col a:hover {
    color: #fff;
}

/* Disclaimer */
.ep-ft__disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 28px;
}
.ep-ft__warn-icon {
    flex-shrink: 0;
    color: #c8ff1a;
    margin-top: 2px;
}
.ep-ft__disclaimer p {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
    margin: 0;
}
.ep-ft__disclaimer strong {
    color: rgba(255,255,255,.8);
}
.ep-ft__disclaimer a {
    color: #c8ff1a;
    text-decoration: underline;
}

/* Crypto Icons */
.ep-ft__crypto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.ep-ft__crypto-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .4;
    transition: opacity .15s;
}
.ep-ft__crypto-icon:hover { opacity: .8; }
.ep-ft__crypto-icon svg {
    width: 100%;
    height: 100%;
    fill: #fff;
}

/* Separator */
.ep-ft__sep {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 0 0 20px;
}

/* Social Links */
.ep-ft__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
.ep-ft__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.ep-ft__social-link:hover {
    border-color: #c8ff1a;
    color: #fff;
}
.ep-ft__social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Copyright */
.ep-ft__copy {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.3);
    padding-top: 4px;
}

/* ==================================================================
   Responsive
   ================================================================== */
@media (max-width: 1023px) {
    .ep-epic__row { grid-template-columns: repeat(4, 1fr); }
    .ep-epic__card--big { grid-column: span 2; }
    .ep-grid6 { grid-template-columns: repeat(4, 1fr); }
    .ep-promos__grid { grid-template-columns: repeat(2, 1fr); }
    .ep-ft__nav { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .ep-cats__item { min-width: 64px; padding: 10px 10px; font-size: 10px; }
    .ep-cats__item svg { width: 20px; height: 20px; }
    .ep-promos { padding: 12px 16px; }
    .ep-promos__grid { grid-template-columns: 1fr; }
    .ep-pc__text { margin-left: 30%; }
    .ep-epic__row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .ep-epic__card--big { grid-column: span 1; }
    .ep-epic__card--big img { aspect-ratio: 4/3; }
    .ep-grid6 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .ep-sec { padding: 16px 16px; }
    .ep-content-island { padding: 20px 16px; }
    .ep-content-island h1 { font-size: 1.5rem; }
    .ep-content-island h2 { font-size: 1.25rem; }
    .ep-hero { padding: 0 16px; margin-top: 12px; }
    .ep-hero__card { flex-direction: column; }
    .ep-hero__img { width: 100%; height: 160px; }
    .ep-hero__text { padding: 24px 20px; }
    .ep-hero__h1 { font-size: 22px; }
    .ep-hero__sub { font-size: 13px; }
    .ep-ft__nav { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .ep-ft { padding: 28px 16px 16px; }
    .ep-ft__crypto { gap: 10px; }
    .ep-ft__crypto-icon { width: 22px; height: 22px; }
    .ep-ft__social-link { width: 36px; height: 36px; }
    .ep-ft__social-link svg { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
    .ep-epic__row { grid-template-columns: repeat(2, 1fr); }
    .ep-grid6 { grid-template-columns: repeat(2, 1fr); }
}
