/* EmuCasino affiliate redesign — site-specific overrides */

:root {
    --emu-bg: #0d0a08;
    --emu-bg-elevated: #161210;
    --emu-bg-card: #1c1714;
    --emu-bg-card-hover: #241e1a;
    --emu-orange: #f37021;
    --emu-orange-light: #ff8c42;
    --emu-green: #6fcf00;
    --emu-green-dark: #5ab800;
    --emu-text: #ffffff;
    --emu-text-muted: #c8c4be;
    --emu-text-soft: #9a9590;
    --emu-border: rgba(243, 112, 33, 0.28);
    --emu-border-strong: rgba(243, 112, 33, 0.55);
    --emu-content-width: 910px;
    --emu-hero-title-width: 1175px;
    --emu-radius-sm: 8px;
    --emu-radius-md: 12px;
    --emu-radius-lg: 16px;
    --emu-shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
    --emu-shadow-cta: 0 4px 16px rgba(111, 207, 0, 0.25);
}

/* --- Base typography & colors --- */

body {
    background-color: var(--emu-bg);
    color: var(--emu-text);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(1.35rem, 4.5vw, 2.125rem);
    line-height: 1.25;
}

.main-text-content h2 {
    font-size: clamp(1.15rem, 3.5vw, 1.75rem);
    margin: 32px 0 14px;
    color: var(--emu-text);
}

.main-text-content h3 {
    font-size: clamp(1rem, 3vw, 1.375rem);
    margin: 26px 0 12px;
    color: var(--emu-text);
}

.main-text-content p {
    margin: 0 0 16px;
    color: var(--emu-text-muted);
}

.main-text-content ul,
.main-text-content ol {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--emu-text-muted);
}

.main-text-content li {
    margin-bottom: 8px;
}

.main-text-content li:last-child {
    margin-bottom: 0;
}

.main-text-content a,
.page-text a {
    color: var(--emu-orange-light);
}

.main-text-content a:hover,
.page-text a:hover {
    color: var(--emu-orange);
}

/* --- Layout containers --- */

.wrap {
    max-width: 940px;
    padding-left: 16px;
    padding-right: 16px;
}

.section {
    margin-bottom: clamp(48px, 8vw, 88px);
}

.page-item {
    background-color: var(--emu-bg-card);
    border: 1px solid var(--emu-border);
}

/* --- Header --- */

.header {
    background-color: var(--emu-bg);
    border-bottom: 1px solid var(--emu-border);
    padding: 12px 0;
    margin-bottom: 0;
}

body.fixed-header .header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    background-color: rgba(13, 10, 8, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header .wrap {
    max-width: 1280px;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.site-logo-link {
    flex-shrink: 0;
}

.site-logo-link img {
    max-height: 38px;
    width: auto;
}

/* --- Page anchor navigation --- */

.page-nav {
    display: none;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
}

.page-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 5px 7px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--emu-text-muted);
    border-radius: var(--emu-radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.page-nav__link:hover,
.page-nav__link:focus-visible {
    color: var(--emu-orange);
    background-color: rgba(243, 112, 33, 0.1);
}

.mobile-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    flex-shrink: 0;
}

.mobile-wrap {
    background-color: var(--emu-bg-elevated);
    border-left: 1px solid var(--emu-border);
    width: min(300px, 88vw);
}

.mobile-wrap .menu a {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--emu-orange-light);
}

.mobile-wrap .menu a:hover {
    opacity: 1;
    color: var(--emu-orange);
}

/* --- Buttons / CTA --- */

.btn {
    background-color: var(--emu-green);
    color: #0d0a08;
    border-radius: var(--emu-radius-sm);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 0;
    box-shadow: var(--emu-shadow-cta);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    animation: none;
}

.btn:hover {
    background-color: var(--emu-green-dark);
    color: #0d0a08;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(111, 207, 0, 0.35);
}

.btn-red {
    background-color: transparent;
    color: var(--emu-orange);
    border: 2px solid var(--emu-orange);
    box-shadow: none;
}

.btn-red:hover {
    background-color: var(--emu-orange);
    color: #0d0a08;
    box-shadow: 0 4px 16px rgba(243, 112, 33, 0.3);
}

.btn-green,
.offer-btn,
.bonus-btn {
    background-color: var(--emu-green);
    color: #0d0a08;
}

.header-btns .btn {
    width: auto;
    min-width: 0;
    padding: 0 12px;
    line-height: 34px;
    font-size: 11px;
    flex-shrink: 0;
}

.header-btns {
    flex-shrink: 0;
    gap: 8px;
}

.header-btns .btn:last-child {
    margin-left: 0;
}

/* --- Hero banner --- */

a.main-banner {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.bonus-item-content {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.main-banner {
    background-image: url('../img/emu-banner.webp');
    background-color: #1a1008;
}

.banner-wrap {
    padding-top: 20px;
}

.banner {
    border-radius: var(--emu-radius-lg);
    margin-top: 0;
    min-height: 420px;
    height: auto;
    padding: 48px 40px;
    background-color: var(--emu-bg-card);
    border: 1px solid var(--emu-border);
    box-shadow: var(--emu-shadow-card);
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(13, 10, 8, 0.92) 0%, rgba(13, 10, 8, 0.55) 45%, rgba(13, 10, 8, 0.15) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.offer {
    position: relative;
    z-index: 2;
}

.offer-title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.5rem, 5.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--emu-text);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.offer-btns .btn {
    max-width: 100%;
    line-height: 50px;
    font-size: 15px;
}

/* --- Bonus cards --- */

.bonus-wrap {
    padding-top: 8px;
}

.bonus-item {
    border-radius: var(--emu-radius-md);
    padding: 16px 18px;
    margin-bottom: 14px;
    background-color: var(--emu-bg-card);
    border: 1px solid var(--emu-border);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bonus-item:hover {
    border-color: var(--emu-border-strong);
    background-color: var(--emu-bg-card-hover);
}

.bonus-item-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(0.95rem, 2.8vw, 1.125rem);
    color: var(--emu-text);
}

.bonus-item-icon {
    max-width: 72px;
}

.bonus-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* --- Slots grid --- */

.slots .slot img {
    border-radius: var(--emu-radius-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.slots .slot .inner:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

/* --- Advantages --- */

.advant-item-content {
    border: 1px solid var(--emu-border);
    transition: border-color 0.2s ease;
}

.advant-item-content:hover {
    border-color: var(--emu-border-strong);
}

.advant-item .item__icon svg {
    stroke: var(--emu-orange);
}

.advant-item .item__text p {
    color: var(--emu-text-muted);
    font-size: 14px;
}

/* --- Screens --- */

.screen-item img {
    border-radius: var(--emu-radius-sm);
    border: 1px solid var(--emu-border);
}

/* --- Main text / content zone --- */

#text.main-text .wrap {
    max-width: 940px;
}

#text .main-text-wrap,
.author-block .main-text-wrap,
.page-content .main-text-wrap {
    background-color: var(--emu-bg-card);
    color: var(--emu-text);
    border-radius: var(--emu-radius-lg);
    padding: clamp(24px, 5vw, 40px);
    border: 1px solid var(--emu-border);
    box-shadow: var(--emu-shadow-card);
}

#text .main-text-wrap {
    max-width: var(--emu-content-width);
    margin-left: auto;
    margin-right: auto;
}

#text .main-text-wrap h1 {
    color: var(--emu-text);
    text-align: center;
    margin-bottom: 22px;
    max-width: none;
    width: auto;
    position: static;
    left: auto;
    transform: none;
}

/* --- Contents / TOC --- */

.contents-block {
    background: var(--emu-bg-elevated);
    border: 1px solid var(--emu-border);
    border-radius: var(--emu-radius-md);
    margin: 24px 0;
    padding: 14px 16px;
}

.contents-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: var(--emu-text);
}

.contents-list a {
    color: var(--emu-orange-light);
    font-size: 14px;
    line-height: 1.5;
}

.contents-list a:hover {
    color: var(--emu-orange);
}

/* --- Tables --- */

.table-scroll-wrap {
    border-radius: var(--emu-radius-md);
    border: 1px solid var(--emu-border);
    background: var(--emu-bg-elevated);
    margin: 16px 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll-wrap table {
    border-collapse: collapse;
    width: max-content !important;
    min-width: 100%;
    margin: 0;
}

.table-scroll-wrap thead {
    padding: 0;
}

.table-scroll-wrap table th,
.table-scroll-wrap table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--emu-border);
    white-space: nowrap;
}

.table-scroll-wrap table tbody tr:last-child td {
    border-bottom: 0;
}

.table-scroll-wrap table thead th {
    color: var(--emu-text) !important;
    background-color: var(--emu-orange) !important;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table-scroll-wrap table tbody tr:nth-child(even) {
    color: var(--emu-text-muted) !important;
    background-color: var(--emu-bg-card) !important;
}

.table-scroll-wrap table tbody tr:nth-child(odd) {
    color: var(--emu-text-muted) !important;
    background-color: var(--emu-bg-elevated) !important;
}

.table-scroll-wrap table tbody tr:hover {
    color: var(--emu-text) !important;
    background-color: var(--emu-bg-card-hover) !important;
}

table {
    width: 100%;
    margin: 20px auto;
}

.main-text-content .table-scroll-wrap table,
.table-scroll-wrap table {
    margin: 0;
}

thead {
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
}

.table-scroll-wrap thead {
    padding: 0;
}

th,
td {
    padding: 10px;
}

/* --- FAQ --- */

.faq-item {
    border: 1px solid var(--emu-border);
    background-color: var(--emu-bg-card);
}

.faq-item:hover,
.faq-item.active {
    border-color: var(--emu-orange);
}

.faq-question h3 {
    font-size: clamp(0.95rem, 2.8vw, 1.125rem);
}

.faq-answer {
    color: var(--emu-text-muted);
}

/* --- Reviews --- */

.reviews-item .inner {
    background-color: var(--emu-bg-card);
    border: 1px solid var(--emu-border);
}

.reviews-item .item__text {
    color: var(--emu-text-muted);
}

.stars svg {
    fill: var(--emu-orange);
    stroke: var(--emu-orange);
}

.section-title {
    font-family: "Montserrat", sans-serif;
    color: var(--emu-text);
}

/* --- Author block --- */

.author-info {
    color: var(--emu-text-muted);
}

.author-title,
.author-title a {
    color: var(--emu-text);
}

.author-social a {
    color: var(--emu-orange-light);
}

/* --- Footer --- */

.footer {
    background-color: var(--emu-bg);
    color: var(--emu-text-muted);
    border-top: 1px solid var(--emu-border);
    padding-top: 40px;
}

.footer .wrap {
    border-top: none;
    padding-top: 0;
}

.footer .pay-row {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--emu-border);
    margin-bottom: 28px;
}

.footer-item a,
.footer .social a {
    color: var(--emu-orange-light);
    transition: color 0.2s ease;
}

.footer-item a:hover,
.footer .social a:hover {
    color: var(--emu-orange);
}

.footer-links {
    width: 100%;
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.footer-links a {
    color: var(--emu-orange-light);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--emu-orange);
}

.contact-form {
    margin-top: 32px;
    max-width: 560px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--emu-text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--emu-border);
    border-radius: 8px;
    background: var(--emu-bg-card);
    color: var(--emu-text);
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--emu-orange);
}

.footer .own {
    color: var(--emu-text-soft);
    font-size: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--emu-border);
}

/* --- Responsive breakpoints --- */

@media (min-width: 1024px) {
    .page-nav {
        display: flex;
    }

    .mobile-btn {
        display: none;
    }
}

@media (max-width: 1023px) {
    .page-nav {
        display: none;
    }

    .mobile-btn {
        display: flex;
    }
}

@media (max-width: 389px) {
    .header-btns .btn-green {
        display: none;
    }

    .header-btns .btn-red {
        flex: 0 1 auto;
    }
}

@media (max-width: 768px) {
    body.fixed-header {
        padding-top: 72px;
    }

    .header .wrap {
        padding-bottom: 0;
        position: static;
        flex-wrap: nowrap;
    }

    .header-btns {
        width: auto;
        justify-content: flex-end;
        margin-left: auto;
    }

    .site-logo-link img {
        max-height: 32px;
    }

    .banner {
        min-height: 280px;
        padding: 32px 20px;
        background-position: center top;
    }

    .offer-title {
        text-align: center;
    }

    .offer-btns {
        justify-content: center;
    }

    .offer-btns .btn {
        width: 100%;
        max-width: 320px;
    }

    .bonus-item-content {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        text-align: center;
    }

    .bonus-item-text {
        width: 100%;
        margin: 0;
    }

    .bonus-btn {
        width: 100%;
        max-width: 280px;
    }

    .screens-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .header-btns .btn {
        min-width: 0;
        flex: 0 1 auto;
        font-size: 11px;
        padding: 0 10px;
        line-height: 34px;
    }

    .slots .slot {
        padding: 0 5px;
        margin-bottom: 10px;
    }

    .advant-item {
        padding: 0 8px;
    }

    .table-scroll-wrap table th,
    .table-scroll-wrap table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .header-btns .btn {
        font-size: 10px;
        padding: 0 8px;
    }

    .offer-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 320px) {
    body {
        font-size: 14px;
    }

    .wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-btns {
        gap: 8px;
    }

    .header-btns .btn:last-child {
        margin-left: 0;
    }
}

@media (min-width: 1024px) {
    .slots .slot {
        width: 16.6666%;
    }
}

@media (min-width: 1280px) {
    .banner {
        min-height: 460px;
    }
}

@media (min-width: 1440px) {
    .wrap {
        max-width: 960px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .slots .slot .inner:hover img,
    .bonus-item {
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}

@media (max-width: 700px) {
    body.fixed-header {
        padding-top: 72px;
    }

    .header .wrap {
        position: static;
        padding-bottom: 0;
    }

    .header .site-logo-link,
    .header .logo,
    .header .site-logo-link img,
    .header .logo img {
        max-width: 140px;
    }
}
