/* ============================================
   Dark Casino Template — 7K Style
   Variables are replaced during export
   ============================================ */

:root {
    --primary-color: #e63946;
    --secondary-color: #ff4d5a;
    --bg-color: #0d0d0f;
    --text-color: #b0b0b8;
    --heading-color: #ffffff;
    --link-color: #e63946;
    --font-family: Inter, sans-serif;
    --font-size-base: 16px;
    --heading-font-size: 34px;
    --container-width: 1200px;
    --header-bg: #111114;
    --footer-bg: #111114;
    --footer-text: #6b6b74;

    /* Buttons */
    --btn-bg: #e63946;
    --btn-text: #ffffff;
    --btn-hover-bg: #ff4d5a;
    --btn-radius: 8px;
    --btn-padding-y: 10px;
    --btn-padding-x: 24px;
    --btn-font-size: 14px;
    --btn-ghost-text: #ffffff;
    --btn-ghost-border: #3a3a44;
    --btn-ghost-hover-bg: #ffffff;
    --btn-ghost-hover-text: #0d0d0f;

    /* Derived palette */
    --surface-1: #141418;
    --surface-2: #1a1a1f;
    --surface-3: #222228;
    --border-color: #2a2a32;
    --border-light: #3a3a44;
    --text-muted: #6b6b74;
    --white: #ffffff;
    --red: var(--primary-color);
    --red-hover: var(--secondary-color);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY — compact, not bold, max 34px
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.4em;
    margin-bottom: 0.6em;
}

h1 { font-size: var(--heading-font-size); }           /* 34px */
h2 { font-size: calc(var(--heading-font-size) - 6px); } /* 28px */
h3 { font-size: calc(var(--heading-font-size) - 10px); } /* 24px */
h4 { font-size: calc(var(--heading-font-size) - 14px); } /* 20px */
h5 { font-size: calc(var(--heading-font-size) - 16px); } /* 18px */
h6 { font-size: calc(var(--heading-font-size) - 18px); } /* 16px */

/* Remove top margin for first heading in content */
.page-content > h1:first-child,
.page-content > h2:first-child,
.page-content > h3:first-child {
    margin-top: 0;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--red-hover);
}

/* Ссылки-кнопки не наследуют стили ссылок */
a.btn {
    color: var(--btn-text);
}

a.btn:hover {
    color: var(--btn-text);
}

a.btn-ghost {
    color: var(--btn-ghost-text);
}

a.btn-ghost:hover {
    color: var(--btn-ghost-hover-text);
}

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

strong, b {
    font-weight: 600;
    color: var(--heading-color);
}

/* ============================================
   HEADER — sticky, dark glass
   ============================================ */
.site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 16px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: var(--red);
}

.logo-img {
    height: 34px;
    width: auto;
    display: block;
}

/* Desktop Navigation (center) */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links {
    justify-content: center;
    flex: 1;
}

.desktop-nav > a:not(.btn),
.nav-dropdown-toggle {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.desktop-nav > a:not(.btn):hover,
.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
    background-color: var(--surface-2);
    color: var(--white);
}

/* Header Action Buttons (right) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle svg {
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 9px 14px;
    color: var(--text-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.nav-dropdown-menu a:hover {
    background-color: var(--surface-3);
    color: var(--white);
}

/* ============================================
   BUTTONS — configurable via style variables
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    border: 1px solid transparent;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: var(--btn-font-size);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

/* Primary */
.btn-primary,
.btn {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border-color: var(--btn-bg);
}

.btn-primary:hover,
.btn:hover {
    background-color: var(--btn-hover-bg);
    color: var(--btn-text);
    border-color: var(--btn-hover-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}

/* Ghost — outline */
.btn-ghost {
    background: transparent;
    color: var(--btn-ghost-text);
    border: 1px solid var(--btn-ghost-border);
}

.btn-ghost:hover {
    background-color: var(--btn-ghost-hover-bg);
    color: var(--btn-ghost-hover-text);
    border-color: var(--btn-ghost-hover-bg);
    transform: translateY(-1px);
}

.btn-sm {
    padding: calc(var(--btn-padding-y) - 2px) calc(var(--btn-padding-x) - 6px);
    font-size: calc(var(--btn-font-size) - 1px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.hamburger span {
    display: block;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Panel */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--surface-1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 100;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-content {
    padding: 80px 24px 24px;
}

.mobile-nav-link {
    display: block;
    padding: 14px 0;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link:hover {
    color: var(--white);
}

.mobile-nav-group {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-group .mobile-nav-link {
    border-bottom: none;
}

.mobile-nav-submenu {
    padding-left: 16px;
    padding-bottom: 8px;
}

.mobile-nav-sublink {
    display: block;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mobile-nav-sublink:hover {
    color: var(--white);
}

.mobile-nav-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main {
    flex: 1;
    padding: 48px 0;
}

/* Article content typography */
.page-content {
    max-width: 100%;
}

.page-content h1:first-child {
    margin-bottom: 0.8em;
}

/* Lists */
ul, ol {
    margin-bottom: 1em;
    padding-left: 1.4em;
}

li {
    margin-bottom: 0.4em;
}

li::marker {
    color: var(--red);
}

/* Blockquote */
blockquote {
    border-left: 3px solid var(--red);
    padding: 16px 20px;
    margin: 1.5em 0;
    background: var(--surface-1);
    border-radius: 0 8px 8px 0;
    color: var(--text-color);
    font-style: normal;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
code {
    background-color: var(--surface-2);
    color: var(--red);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88em;
}

pre {
    background-color: var(--surface-2);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5em 0;
}

pre code {
    background: none;
    padding: 0;
    color: var(--text-color);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9rem;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--surface-2);
    color: var(--heading-color);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

tr:hover td {
    background-color: var(--surface-1);
}

/* ============================================
   FOOTER — dark, 3 columns + copyright
   ============================================ */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    padding: 48px 0 36px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    display: inline-block;
    margin-bottom: 14px;
}

.footer-logo:hover {
    color: var(--red);
}

.footer-logo-img {
    height: 30px;
    width: auto;
    display: block;
    opacity: 0.8;
}

.footer-about-text {
    opacity: 0.7;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    gap: 48px;
}

.footer-nav > .footer-plain-link {
    color: var(--footer-text);
    transition: color 0.2s ease;
}

.footer-nav > .footer-plain-link:hover {
    color: var(--white);
}

.footer-nav-group {
    min-width: 120px;
}

.footer-nav-title {
    display: block;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-links a {
    color: var(--footer-text);
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-nav-links a:hover {
    color: var(--white);
}

/* Footer Extra Column */
.footer-extra-text {
    opacity: 0.7;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* Copyright Strip */
.footer-copyright-strip {
    border-top: 1px solid var(--border-color);
    padding: 14px 0;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

/* ============================================
   SHORTCODE BLOCKS — Casino Themed
   ============================================ */

/* ---------- Hero Banner ---------- */
.sc-hero {
    padding: 80px 0 64px;
    text-align: center;
}

.sc-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.sc-hero-title {
    font-size: var(--heading-font-size);
    margin-bottom: 0.4em;
    margin-top: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.sc-hero-text {
    font-size: 1.05rem;
    color: var(--text-color);
    max-width: 560px;
    margin: 0 auto 1.8em;
    line-height: 1.7;
}

.sc-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sc-hero-actions .btn {
    padding: 12px 32px;
    font-size: 0.9rem;
}

/* ---------- Bonus Card (large CTA) ---------- */
.sc-bonus-card {
    padding: 64px 0;
}

.sc-bonus-card-inner {
    position: relative;
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 56px 40px;
    text-align: center;
    overflow: hidden;
}

.sc-bonus-card-glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.sc-bonus-card-content {
    position: relative;
    z-index: 1;
}

.sc-bonus-card-label {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--red);
    margin-bottom: 20px;
}

.sc-bonus-card-amount {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.sc-bonus-card-desc {
    font-size: 1.05rem;
    color: var(--text-color);
    max-width: 480px;
    margin: 0 auto 8px;
    line-height: 1.6;
}

.sc-bonus-card-terms {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.sc-bonus-card .btn {
    padding: 14px 40px;
    font-size: 0.95rem;
}

/* ---------- Bonuses Grid (3 cards) ---------- */
.sc-bonuses {
    padding: 64px 0;
}

.sc-bonuses-title {
    text-align: center;
    margin-bottom: 1.2em;
    margin-top: 0;
}

.sc-bonuses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sc-bonuses-item {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.sc-bonuses-item:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.sc-bonuses-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    line-height: 1;
}

.sc-bonuses-item h3 {
    margin-top: 0;
    margin-bottom: 0.3em;
    color: var(--white);
    font-size: 1.05rem;
}

.sc-bonuses-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 10px;
}

.sc-bonuses-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.6;
}

.sc-bonuses-item .btn {
    width: 100%;
}

/* ---------- Promo Banner (horizontal) ---------- */
.sc-promo {
    padding: 20px 0;
}

.sc-promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 36px;
}

.sc-promo-content {
    flex: 1;
}

.sc-promo-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--red);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.sc-promo-title {
    margin-top: 0;
    margin-bottom: 0.3em;
    color: var(--white);
    font-size: 1.2rem;
}

.sc-promo-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.sc-promo-action {
    flex-shrink: 0;
}

.sc-promo-action .btn {
    padding: 12px 28px;
    white-space: nowrap;
}

/* ---------- How to Start (3 steps) ---------- */
.sc-steps {
    padding: 64px 0;
}

.sc-steps-title {
    text-align: center;
    margin-bottom: 1.2em;
    margin-top: 0;
}

.sc-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step-counter;
}

.sc-steps-item {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: border-color 0.2s ease;
}

.sc-steps-item:hover {
    border-color: var(--border-light);
}

.sc-steps-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--red);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.sc-steps-item h3 {
    margin-top: 0;
    margin-bottom: 0.4em;
    color: var(--white);
    font-size: 1.05rem;
}

.sc-steps-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ---------- CTA Block ---------- */
.sc-cta {
    background: var(--surface-1);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 72px 0;
    text-align: center;
}

.sc-cta-title {
    color: var(--white);
    font-size: calc(var(--heading-font-size) - 4px);
    margin-bottom: 0.5em;
    margin-top: 0;
}

.sc-cta-text {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1.5em;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.sc-cta .btn {
    padding: 14px 36px;
    font-size: 0.95rem;
}

/* ---------- Error Page ---------- */
.error-page {
    text-align: center;
    padding: 100px 20px;
}

.error-page h1 {
    font-size: 100px;
    color: var(--red);
    margin-bottom: 16px;
    font-weight: 700;
    margin-top: 0;
}

.error-page p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: calc(var(--heading-font-size) - 4px); }
    h2 { font-size: calc(var(--heading-font-size) - 8px); }
    h3 { font-size: calc(var(--heading-font-size) - 12px); }
    
    .desktop-nav,
    .header-actions.desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .site-main {
        padding: 32px 0;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 28px;
    }
    
    .footer-nav-group {
        text-align: center;
    }
    
    .footer-about-text,
    .footer-extra-text {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Shortcodes responsive */
    .sc-hero {
        padding: 48px 0 32px;
    }
    
    .sc-hero-actions {
        flex-direction: column;
    }
    
    .sc-hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .sc-bonus-card {
        padding: 40px 0;
    }
    
    .sc-bonus-card-inner {
        padding: 40px 24px;
    }
    
    .sc-bonus-card-amount {
        font-size: 1.8rem;
    }
    
    .sc-bonuses-grid,
    .sc-steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sc-promo-inner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
    
    .sc-promo-action .btn {
        width: 100%;
    }
    
    .sc-cta {
        padding: 48px 0;
    }
    
    .error-page h1 {
        font-size: 72px;
    }
}


/* === Shortcode Styles === */
/* Shortcode: my-block */
.my-block {
  padding: 2rem;
  background: #f5f5f5;
  border-radius: 8px;
}