/* Euro King Online Casino Theme */
:root {
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --bg-panel: #111111;
    --gold: #d4af37;
    --gold-light: #f0c040;
    --gold-dark: #9a7b1a;
    --red: #a80000;
    --red-dark: #6b0000;
    --red-bright: #cc0000;
    --text-white: #ffffff;
    --text-muted: #c8b878;
    --border-gold: #c9a227;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    color: var(--text-white);
    background: var(--bg-black);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.site-header {
    background: var(--bg-black);
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo img {
    height: 56px;
    width: auto;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-menu {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
}

.header-menu-item,
.header-menu-divider {
    display: inline-flex;
    align-items: center;
}

.header-menu-divider {
    color: var(--gold);
    padding: 0 10px;
    font-size: 13px;
    opacity: 0.7;
}

.header-menu-link {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.header-menu-link:hover,
.header-menu-link.active {
    color: var(--text-white);
}

.mobile-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1002;
}

.mobile-burger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--gold);
    margin: 4px 0;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

/* Main Layout */
.main-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
    align-items: start;
}

.page-main {
    min-width: 0;
}

.page-sidebar {
    position: sticky;
    top: 90px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    margin: 0 -20px 24px;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-banner--image-only {
    min-height: auto;
}

.hero-banner-link {
    display: block;
    text-decoration: none;
}

.hero-banner-media,
.hero-banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-banner:not(.hero-banner--image-only) .hero-banner-media,
.hero-banner:not(.hero-banner--image-only) .hero-banner-image {
    min-height: 280px;
    object-fit: cover;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 55%, rgba(0, 0, 0, 0.9) 100%);
    padding: 30px 40px;
}

.hero-banner-content {
    max-width: 420px;
    text-align: center;
}

.hero-banner-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    color: var(--gold-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-banner-subtitle {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(16px, 2vw, 22px);
    color: var(--gold);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-banner-btn,
.promo-banner-btn,
.game-play-btn,
.btn-primary {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(180deg, var(--red-bright) 0%, var(--red-dark) 100%);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid var(--border-gold);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-banner-btn:hover,
.promo-banner-btn:hover,
.game-play-btn:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px rgba(168, 0, 0, 0.4);
}

.hero-banner-terms {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

/* Category Buttons */
.category-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.category-btn-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-btn-icon svg {
    width: 64px;
    height: 64px;
}

.category-btn-label {
    display: block;
    width: 100%;
    padding: 10px 8px;
    text-align: center;
    background: linear-gradient(180deg, var(--red-bright) 0%, var(--red-dark) 100%);
    border: 2px solid var(--border-gold);
    border-radius: 4px;
    color: var(--text-white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.category-btn.active .category-btn-label,
.category-btn:hover .category-btn-label {
    background: linear-gradient(180deg, #d42020 0%, #8b0000 100%);
    border-color: var(--gold-light);
}

/* Sidebar */
.sidebar-block {
    background: var(--bg-panel);
    border: 1px solid #2a2a2a;
    margin-bottom: 16px;
    padding: 14px;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid #222;
    font-size: 12px;
}

.sidebar-list-item:last-child {
    border-bottom: none;
}

.sidebar-item-name {
    color: var(--text-white);
    font-weight: 600;
}

.sidebar-item-game {
    color: var(--text-muted);
    font-size: 11px;
}

.sidebar-item-amount {
    color: var(--gold-light);
    font-weight: 700;
}

/* Games */
.game-section {
    margin-bottom: 32px;
}

.section-header {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.game-card {
    background: var(--bg-panel);
    border: 1px solid #2a2a2a;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.game-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-2px);
}

.game-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 275 / 385;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.game-play-btn {
    display: block;
    width: 100%;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.game-title {
    padding: 8px 10px;
    text-align: center;
    font-size: 12px;
    color: var(--gold-light);
    background: #0d0d0d;
}

/* Text Content */
.text-content {
    max-width: 100%;
    margin: 30px 0;
    padding: 24px;
    background: var(--bg-panel);
    border: 1px solid #2a2a2a;
}

.text-content h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.text-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    margin: 28px 0 14px;
}

.text-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-light);
    margin: 22px 0 10px;
}

.text-content p {
    margin-bottom: 14px;
    color: #ccc;
    font-size: 14px;
}

.text-content img {
    margin: 20px 0;
    border: 1px solid #333;
}

.text-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.text-content th,
.text-content td {
    padding: 10px;
    border: 1px solid #333;
    text-align: left;
    color: #ccc;
    font-size: 13px;
}

.text-content th {
    background: #1a1a1a;
    color: var(--gold-light);
}

.text-content ul,
.text-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: #ccc;
}

.text-content a {
    color: var(--gold-light);
}

.text-content blockquote {
    margin: 20px 0;
    padding: 15px;
    border-left: 3px solid var(--gold);
    background: #1a1a1a;
    color: #ccc;
}

/* FAQ */
.faq-wrapper {
    margin: 20px 0;
}

.faq-item-block {
    border: 1px solid #333;
    margin-bottom: 10px;
    background: #1a1a1a;
}

.faq-question-block {
    padding: 15px;
    background: #111;
    border-bottom: 1px solid #333;
}

.faq-question-block strong {
    font-size: 15px;
    color: var(--gold-light);
}

.faq-answer-block {
    padding: 15px;
    color: #ccc;
    font-size: 14px;
}

/* HowTo */
.howto-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #1a1a1a;
    border: 1px solid #333;
}

.howto-steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.howto-step-item {
    counter-increment: step-counter;
    padding: 15px;
    margin-bottom: 10px;
    background: #111;
    border-left: 3px solid var(--gold);
    color: #ccc;
}

.howto-step-item::before {
    content: counter(step-counter) ".";
    font-weight: bold;
    margin-right: 10px;
    color: var(--gold-light);
}

/* Breadcrumbs - hidden on homepage */
.breadcrumb-nav {
    display: none;
}

/* Payment Methods */
.payment-methods-section {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.payment-method-card {
    border: 1px solid #333;
    padding: 12px;
    text-align: center;
    background: #111;
}

.payment-method-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-light);
    margin-top: 8px;
}

/* Footer */
.site-footer {
    background: #0a0a0a;
    color: #aaa;
    padding: 30px 20px 20px;
    margin-top: 20px;
    border-top: 1px solid #222;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 12px;
    color: #777;
}

/* Legacy promo banner support */
.promotional-banners {
    margin-bottom: 20px;
}

.promo-banner {
    position: relative;
    overflow: hidden;
}

.promo-banner-image {
    width: 100%;
    height: auto;
}

.promo-banner-content {
    padding: 20px;
}

.promo-banner-title {
    font-family: Georgia, serif;
    color: var(--gold-light);
    font-size: 22px;
    margin-bottom: 10px;
}

.promo-banner-text {
    color: var(--gold);
    margin-bottom: 14px;
}

/* Mobile */
@media (max-width: 992px) {
    .mobile-burger {
        display: block;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: #0d0d0d;
        border-left: 1px solid #333;
        padding: 70px 20px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .header-nav.open {
        transform: translateX(0);
    }

    .header-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .header-menu-divider {
        display: none;
    }

    .header-menu-link {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #222;
        font-size: 15px;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .category-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-banner-overlay {
        justify-content: center;
        padding: 24px 20px 40px;
    }

    .hero-banner {
        margin: 0 -20px 20px;
        min-height: 240px;
    }
}

@media (max-width: 768px) {
    .header-logo img {
        height: 44px;
    }

    .header-inner {
        padding: 10px 50px 10px 16px;
    }

    .main-content-wrapper {
        padding: 0 16px 30px;
    }

    .hero-banner {
        margin: 0 -16px 16px;
    }

    .page-sidebar {
        grid-template-columns: 1fr;
    }

    .category-nav {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-btn-icon {
        width: 56px;
        height: 56px;
    }

    .category-btn-icon svg {
        width: 48px;
        height: 48px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .text-content {
        padding: 16px;
    }

    .text-content h1 {
        font-size: 22px;
    }
}
