/* ================================================
   DIONYX CASINO — THEME OVERRIDES
   Color System: Deep Obsidian + Gold + Violet
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Exo+2:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Design Tokens — Palette: #5B2EFF / #BA2BE2 / #FFD700 / #1A1A2E / #0D0D14 ── */
:root {
    --bg:          #0D0D14;
    --bg-card:     #1A1A2E;
    --bg-card2:    #1A1A2E;
    --bg-header:   #0D0D14;
    --bg-footer:   #0D0D14;
    --bg-aside:    #1A1A2E;

    --gold:        #FFD700;
    --gold-hover:  #FFE34D;
    --gold-dark:   #CC9900;
    --amber:       #FF9500;
    --g-btn:       linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    --g-btn-hov:   linear-gradient(135deg, #FFE34D 0%, #FFAA22 100%);

    --violet:      #5B2EFF;
    --violet-lt:   #BA2BE2;
    --violet-glow: rgba(91, 46, 255, 0.28);

    --txt:         #FFFFFF;
    --txt-mid:     rgba(255, 255, 255, 0.58);
    --txt-dim:     rgba(255, 255, 255, 0.32);

    --b-default:   1px solid rgba(255, 215, 0, 0.12);
    --b-violet:    1px solid rgba(91, 46, 255, 0.22);
    --b-gold:      1px solid rgba(255, 215, 0, 0.38);

    --sh-gold:     0 4px 22px rgba(255, 215, 0, 0.28), 0 2px 8px rgba(0,0,0,.5);
    --sh-card:     0 8px 32px rgba(0, 0, 0, .52);
    --sh-violet:   0 4px 22px rgba(139, 76, 247, 0.38);

    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  24px;
    --r-xl:  32px;
    --r-pill: 100px;
}

/* ── Base ─────────────────────────────────────── */
html {
    box-sizing: border-box;
    font-family: 'Exo 2', 'Ubuntu', sans-serif;
    font-weight: 400;
}
*, *::before, *::after { box-sizing: inherit; }

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(ellipse at 50% 0%, #1A1A2E 0%, #0D0D14 55%);
    background-color: #0D0D14;
    background-attachment: fixed;
    overflow-x: hidden;
    color: var(--txt);
}

/* ── Typography ───────────────────────────────── */
h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 21px; }

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-style: normal;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 28px rgba(255, 215, 0, 0.18);
    line-height: 1.25;
    margin: 28px 0 14px;
}

/* ── Content area ─────────────────────────────── */
.entry-content p        { color: var(--txt-mid); line-height: 1.72; }
.entry-content a        { color: var(--violet-lt); transition: color .2s; }
.entry-content a:hover  { color: var(--gold); }
.entry-content ul, .entry-content ol { margin: 14px 0; padding-left: 22px; }
.entry-content ul li    { color: var(--txt-mid); margin-bottom: 8px; }
.entry-content ul li strong { color: var(--gold); }

.entry-content table    { border: var(--b-default); border-collapse: collapse; }
.entry-content th,
.entry-content td       { border: 1px solid rgba(255,215,0,.08); padding: 12px 16px; color: var(--txt); }

.entry-content img {
    margin: 0 0 1.5em 0;
    border-radius: var(--r-md);
    max-width: 100%;
    height: auto;
}

.alignleft,  img.alignleft  { margin-right: 1.5em; display: inline; float: left; }
.alignright, img.alignright { margin-left: 1.5em;  display: inline; float: right; }
.aligncenter, img.aligncenter {
    margin: 0 auto 1.5em;
    display: block;
    clear: both;
    max-width: 100%;
    height: auto;
}

/* ── Header ───────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-header);
    padding: 12px 0;
    border-bottom: var(--b-default);
    box-shadow: 0 2px 28px rgba(0,0,0,.65);
    backdrop-filter: blur(14px);
}

.header__menu { display: flex; align-items: center; gap: 28px; }
.menu-primary { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 28px; }
.menu-primary li { position: relative; }
.menu-primary li a {
    text-decoration: none;
    color: var(--txt-mid);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-transform: capitalize;
    transition: color .2s;
}
.menu-primary li a:hover { color: var(--gold); }

.header__logo  { text-align: center; }
.header__btns  { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }

/* Sign-in */
a.header__btn_signin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.04);
    color: var(--txt-mid) !important;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    text-decoration: none;
    transition: all .22s ease;
}
a.header__btn_signin:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
    background: rgba(255,215,0,.05);
}

/* Sign-up — gold gradient + optional animated bonus image */
a.header__btn_signup {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--r-pill);
    background: var(--g-btn);
    box-shadow: var(--sh-gold);
    color: #1A0900 !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    text-decoration: none;
    transition: all .3s ease;
    overflow: hidden;
    filter: none;
    background-color: transparent;
}
a.header__btn_signup:hover {
    background: var(--g-btn-hov);
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(255,215,0,.44), 0 6px 18px rgba(0,0,0,.4);
    filter: none;
    background-color: transparent;
}

/* Animated bonus gif inside signup button */
a.header__btn_signup .bonus-gif {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    pointer-events: none;
}

/* ── CTA Button shortcode [btn] ───────────────── */
.btn.btn__short,
a.btn__short,
.btn__short {
    display: block;
    width: fit-content;
    min-width: 480px;
    margin: 28px auto;
    background: var(--g-btn) !important;
    box-shadow: var(--sh-gold);
    border-radius: var(--r-pill);
    padding: 20px 52px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    color: #1A0900 !important;
    text-decoration: none;
    transition: all .3s ease;
    letter-spacing: .04em;
    text-transform: uppercase;
    filter: none;
    background-color: transparent !important;
}
.btn.btn__short:hover,
a.btn__short:hover,
.btn__short:hover {
    background: var(--g-btn-hov) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(255,215,0,.48), 0 8px 24px rgba(0,0,0,.4);
    filter: none;
    background-color: transparent !important;
}

/* Game play button */
a.game_btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background: var(--g-btn) !important;
    color: #1A0900 !important;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
    filter: none;
    background-color: transparent !important;
}
a.game_btn:hover {
    filter: brightness(1.1);
    background: var(--g-btn-hov) !important;
    background-color: transparent !important;
}

/* ── Main content card ────────────────────────── */
.main {
    border-radius: var(--r-lg);
    border: var(--b-violet);
    background: var(--bg-card);
    padding: 32px 40px;
    color: var(--txt);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
    box-shadow: var(--sh-card);
}

/* ── Banner hero (old style) ──────────────────── */
.banner         { margin-top: 24px; margin-bottom: 16px; }
.banner__inner  {
    border-radius: var(--r-lg);
    border: var(--b-default);
    background-color: var(--bg-card);
    padding: 48px 42px;
}
.banner__bonus_type { color: var(--txt); }
.banner__bonus_name,
.banner__bonus_add  { color: var(--gold); }

/* ── FAQ ──────────────────────────────────────── */
.faq {
    border-radius: var(--r-lg);
    border: var(--b-violet);
    background: var(--bg-card);
    padding: 32px 40px;
    color: var(--txt);
    margin-top: 20px;
    box-shadow: var(--sh-card);
}
.faq__title     { text-align: center; color: var(--gold); }
.faq__list      { list-style: none; padding: 0; margin: 0; }
.faq__item      { padding-bottom: 20px; border-bottom: 1px solid rgba(255,215,0,.08); }
.faq__item + .faq__item { margin-top: 16px; }
.faq__question  { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--txt); cursor: pointer; }
.faq__question:hover { color: var(--gold); }
.faq__answer    { display: none; margin-top: 16px; font-size: 14px; line-height: 1.65; font-weight: 400; color: var(--txt-mid); }
.open + .faq__answer { display: block; }
.faq__btn {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-image: url(../img/arrow.svg);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform .2s ease;
}
.open .faq__btn { transform: rotate(180deg); }

/* ── TOC ──────────────────────────────────────── */
[data-toc] > .contents,
.contents {
    background: var(--bg-card2);
    border: var(--b-default);
    border-radius: var(--r-md);
    padding: 20px 24px;
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2px;
}
.contents a {
    display: block;
    padding: 9px 14px 9px 12px;
    color: var(--txt-mid) !important;
    text-decoration: none;
    font-size: 14px;
    border-radius: var(--r-sm);
    border-left: 2px solid transparent;
    transition: all .2s ease;
}
.contents a:visited { color: var(--txt-mid) !important; }
.contents a:hover {
    color: var(--gold) !important;
    background: rgba(255,215,0,.05);
    border-left-color: var(--gold);
    padding-left: 18px;
}

/* ── Bonus cards ──────────────────────────────── */
.bonus_name  { color: var(--gold); }
.bonus_type  { color: var(--txt-mid); }
.games__list-item { background: var(--bg-card); border: var(--b-default); border-radius: var(--r-md); }
.game__wrapper    { border: 1px solid rgba(255,215,0,.08); }
.game__overlay    { background: rgba(7,5,13,.8); }
.game_name        { color: var(--txt-mid); font-size: 12px; padding: 7px 4px 2px; text-align: center; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }

/* ── Footer ───────────────────────────────────── */
.footer {
    padding: 48px 0;
    margin-top: 60px;
    background: var(--bg-footer);
    border-top: var(--b-default);
}
.menu-footer {
    padding: 0; margin: 0 0 28px; list-style: none;
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,215,0,.08);
}
.menu-footer a { text-transform: uppercase; text-decoration: none; font-weight: 400; font-size: 14px; color: var(--txt-dim); transition: color .2s; }
.menu-footer a:hover { color: var(--gold); }
.payments      { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,215,0,.08); }
.payments img  { width: 86px; height: auto; }
.footer__text  { font-size: 13px; font-weight: 400; line-height: 1.85; color: var(--txt-dim); text-align: center; }

/* ── Aside / mobile menu ──────────────────────── */
.aside {
    position: fixed;
    background: rgba(7,5,13,.88);
    top: 65px; left: 0;
    z-index: -1;
    width: 100%; height: 100%;
    opacity: 0; overflow: hidden;
    transition: all .2s ease;
}
.open.aside { z-index: 999; opacity: 1; }

.aside__container {
    width: 280px;
    padding: 14px 16px;
    background: var(--bg-aside);
    border-right: var(--b-default);
    height: 100%;
    position: absolute; top: 0; left: 0;
    transform: translateX(-100%);
    transition: all .3s ease;
}
.open .aside__container { transform: translateX(0); }
.aside_overlay { position: absolute; right: 0; top: 0; width: calc(100% - 280px); height: 100%; }
.aside__btns { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; margin-top: 24px; }
.aside .header__btn_signin { border-radius: var(--r-sm); background: rgba(255,255,255,.06); color: var(--txt) !important; }

.menu-sidebar { margin: 0; padding: 0; list-style: none; border-left: 1px dashed rgba(255,215,0,.28); padding-left: 12px; }
.menu-sidebar li a { color: var(--txt-mid); font-size: 14px; font-weight: 500; line-height: 16px; text-decoration: none; transition: color .2s; }
.menu-sidebar li a:hover { color: var(--gold); }
.menu-sidebar li + li { margin-top: 12px; }

.header__btn_side_menu { display: none; cursor: pointer; }
.header__btn_side_menu .close { display: none; }
.header__btn_side_menu .open  { display: block; }
.header__btn_side_menu.open .close { padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 24px; display: block; width: fit-content; }
.header__btn_side_menu.open .open  { display: none; }

.mobile { display: none; }

/* bg layer */
.bg { position: absolute; display: block; top: 0; left: 0; width: 100vw; height: auto; z-index: -1; }

/* ════════════════════════════════════════════════
   SCROLL TO TOP BUTTON
════════════════════════════════════════════════ */
.scroll-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--g-btn);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 994;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s, visibility .3s, transform .3s, box-shadow .3s;
    box-shadow: var(--sh-gold);
    padding: 0;
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 32px rgba(255,215,0,.52), 0 8px 20px rgba(0,0,0,.4);
}
.scroll-to-top svg {
    width: 20px;
    height: 20px;
    fill: #1A0900;
    pointer-events: none;
    display: block;
}

/* ════════════════════════════════════════════════
   STICKY FOOTER BANNER
════════════════════════════════════════════════ */
.sticky-footer-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background: linear-gradient(90deg, #120929 0%, #0D0820 50%, #120929 100%);
    border-top: 1px solid rgba(255,215,0,.2);
    box-shadow: 0 -8px 40px rgba(0,0,0,.7);
}
.sfb-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 11px 20px;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}
.sfb-image {
    flex-shrink: 0;
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: var(--r-sm);
}
.sfb-content { flex: 1; min-width: 0; }
.sfb-bonus {
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sfb-text { color: var(--gold); font-size: 18px; line-height: 1.4; margin-top: 3px; }
.sfb-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 13px 30px;
    background: var(--g-btn);
    color: #1A0900 !important;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--sh-gold);
    transition: all .3s ease;
    letter-spacing: .02em;
}
.sfb-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 0 28px rgba(255,215,0,.48), 0 6px 16px rgba(0,0,0,.4); }

/* always pad footer and scroll btn when sticky banner present */
body:has(.sticky-footer-banner) .footer { padding-bottom: 108px; }
body:has(.sticky-footer-banner) .scroll-to-top { bottom: 116px; }

/* ── WP caption ───────────────────────────────── */
.wp-caption { margin-bottom: 1.5em; text-align: center; padding-top: 5px; }
.wp-caption img { border: 0; padding: 0; margin: 0; }
.wp-caption p.wp-caption-text { line-height: 1.5; font-size: 10px; margin: 0; }
.wp-smiley { margin: 0 !important; max-height: 1em; }

blockquote.left  { margin-right: 20px; text-align: right;  margin-left: 0; width: 33%; float: left; }
blockquote.right { margin-left: 20px;  text-align: left; margin-right: 0; width: 33%; float: right; }

/* ── Responsive ───────────────────────────────── */
@media(max-width: 1024px) { .header__menu_primary { display: none; } }

@media(max-width: 767px) {
    .header__btn_side_menu { display: block; }
    .entry-content table { width: 100%; display: block; overflow: scroll; }
    .container { max-width: 680px; }
    .banner__bonus { overflow: hidden; }
    .banner__bonus_left { position: relative; z-index: 9; }
    .banner__bonus_name, .banner__bonus_add { font-size: 32px; line-height: 34px; }
    .banner { padding: 64px; min-height: 315px; }
    .menu-footer { flex-wrap: wrap; gap: 12px; }
    .main  { padding: 24px 20px; }
    .faq   { padding: 24px 20px; }
    .scroll-to-top  { bottom: 84px; right: 16px; width: 42px; height: 42px; }
    .sfb-text { font-size: 14px; }
    .sfb-bonus { font-size: 14px; }
    .sfb-btn  { padding: 11px 18px; font-size: 13px; }
    .sfb-image { width: 52px; height: 52px; }
}

@media(max-width: 566px) {
    .banner__bonus_name, .banner__bonus_add { font-size: 28px; }
    .banner { padding: 44px 0; }
    .desctop { display: none; }
    .header.open { position: fixed; top: 0; left: 0; width: 100%; z-index: 999; }
    .mobile { display: flex; justify-content: center; align-items: center; }
    .header__btns a { width: fit-content; display: flex; justify-content: center; align-items: center; }
    /* равні кнопки в хедері на мобілці */
    .header__btns .header__btn_signin,
    .header__btns .header__btn_signup {
        width: 46px !important;
        height: 46px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0;
    }
    .header__btns .header__btn_signin img,
    .header__btns .header__btn_signup img,
    .header__btns a.header__btn_signup .bonus-gif {
        width: 22px !important;
        height: 22px !important;
        border-radius: 0;
    }
    .aside .header__btn_signup, .aside .header__btn_signin { padding: 11px 20px; }
    .btn.btn__short, .btn__short { min-width: unset; width: 100%; }
    .sfb-inner { gap: 10px; padding: 10px 12px; }
    .sfb-image { width: 44px; height: 44px; }
    .contents { grid-template-columns: 1fr; }
}

@media(max-width: 360px) {
    .banner, .banner__bonus { display: flex; justify-content: center; align-items: center; flex-direction: column; }
    .banner__bonus_type { margin-bottom: 16px; }
}

/* ════════════════════════════════════════════════
   INLINE TABLE OVERRIDES (content inline styles)
════════════════════════════════════════════════ */
.entry-content table         { background-color: #1A1A2E !important; border-color: rgba(255,215,0,.15) !important; }
.entry-content thead tr      { background-color: #0D0D14 !important; border-bottom-color: rgba(255,215,0,.4) !important; }
.entry-content tbody tr      { background-color: transparent !important; border-bottom-color: rgba(255,215,0,.08) !important; }
.entry-content tbody tr:nth-child(even) { background-color: rgba(91,46,255,.06) !important; }
.entry-content th            { color: #FFD700 !important; border-color: rgba(255,215,0,.15) !important; }
.entry-content td            { color: rgba(255,255,255,.82) !important; border-color: rgba(255,215,0,.08) !important; }

/* ════════════════════════════════════════════════
   BANNER NAVIGATION ITEMS
════════════════════════════════════════════════ */
.banner_navigation { justify-content: center; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.banner_navigation_item {
    background: #1A1A2E !important;
    border: 1px solid rgba(91,46,255,.25) !important;
    border-radius: 12px !important;
    color: rgba(255,255,255,.65) !important;
    font-size: 11px;
    padding: 10px 14px !important;
    transition: all .22s ease;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.banner_navigation_item:hover {
    background: rgba(91,46,255,.15) !important;
    border-color: rgba(255,215,0,.38) !important;
    color: #FFD700 !important;
    transform: translateY(-2px);
}
.banner_navigation_item img { width: 44px; margin: 0 !important; }
