/* Premium Slate — rankingcasinosaar.com */
:root {
    --bg-main: #0b0d10;
    --bg-card: #13171c;
    --bg-elevated: #1a1f26;
    --border: #1f262f;
    --text-main: #ffffff;
    --text-muted: #8b95a5;
    --text-soft: #c4cad4;
    --accent: #00ff87;
    --accent-dim: rgba(0, 255, 135, 0.12);
    --accent-border: rgba(0, 255, 135, 0.35);
    --danger: #ff6b6b;
    --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --container: 1120px;
    --radius: 12px;
    --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 13, 16, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-domain {
    font-size: 0.65rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: color 0.2s;
}

.main-nav a:hover { color: var(--accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    min-height: 320px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/assets/img/hero-bg.jpg') center center / cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(11, 13, 16, 0.72) 0%, rgba(11, 13, 16, 0.88) 55%, var(--bg-main) 100%),
        linear-gradient(90deg, rgba(11, 13, 16, 0.5) 0%, transparent 50%, rgba(11, 13, 16, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-soft);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hero-btn--primary {
    color: var(--bg-main);
    background: var(--accent);
}

.hero-btn--primary:hover {
    background: transparent;
    color: var(--accent);
}

.hero-btn--secondary {
    color: var(--text-main);
    background: rgba(11, 13, 16, 0.45);
    border-color: var(--border);
}

.hero-btn--secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.hero-pill svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Ranking section */
.ranking-section {
    padding: 2.5rem 0 3.5rem;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Casino card */
.casino-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 1.25rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    position: relative;
    transition: border-color 0.2s;
}

.casino-card:hover {
    border-color: var(--accent-border);
}

.casino-card--featured {
    border-color: var(--accent-border);
    background: linear-gradient(135deg, var(--bg-card) 0%, #141a22 100%);
}

.casino-card__badge {
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    background: var(--accent);
    color: var(--bg-main);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.casino-card__rank {
    grid-row: 1 / -1;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
    min-width: 2.5rem;
    text-align: center;
}

.casino-card--featured .casino-card__rank,
.casino-card:nth-child(-n+3) .casino-card__rank {
    color: var(--accent);
}

.casino-card__body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.25rem;
    align-items: start;
    min-width: 0;
}

.casino-card__logo-wrap {
    width: 140px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
}

.casino-card__logo {
    max-height: 36px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.casino-card__info { min-width: 0; }

.casino-card__bonus-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.casino-card__bonus {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.casino-card__features {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.65rem;
}

.casino-card__features li {
    font-size: 0.8rem;
    color: var(--text-soft);
    padding-left: 0.85rem;
    position: relative;
}

.casino-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.casino-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.casino-card__tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
}

.casino-card__aside {
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    text-align: right;
}

.casino-card__score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.casino-card__rating {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.casino-card__stars {
    display: flex;
    gap: 2px;
}

.casino-card__stars svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
}

.casino-card__stars svg.empty {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
}

.casino-card__votes {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.casino-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bg-main);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.casino-card__cta:hover {
    background: transparent;
    color: var(--accent);
}

/* Guide section */
.guide-section {
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--border);
}

.guide-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.guide-intro {
    color: var(--text-soft);
    margin-bottom: 2.5rem;
    max-width: 42rem;
}

.guide-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.guide-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.guide-block h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.guide-block p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.guide-block ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guide-block li {
    font-size: 0.9rem;
    color: var(--text-soft);
    padding-left: 1rem;
    position: relative;
}

.guide-block li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.guide-block strong { color: var(--text-main); }

/* Responsible gaming block */
.rg-section {
    padding: 2.5rem 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.rg-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rg-section > .container > p {
    color: var(--text-soft);
    margin-bottom: 1.75rem;
}

.rg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.rg-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-main);
}

.rg-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rg-card p,
.rg-card a {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.rg-card a { color: var(--accent); }
.rg-card a:hover { text-decoration: underline; }

.rg-card .rg-phone {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin: 0.25rem 0;
}

.rg-warning {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    font-size: 0.85rem;
    color: var(--text-soft);
}

.rg-warning strong { color: var(--accent); }

/* Subpages */
.page-hero {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-hero p {
    color: var(--text-soft);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.page-hero--center {
    text-align: center;
}

.page-content {
    padding: 2.5rem 0 4rem;
}

.page-content:not(.page-content--form) .container {
    max-width: 720px;
    margin: 0 auto;
}

.page-content--form .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p,
.page-content li {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 0.75rem;
}

.page-content ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.page-content li { margin-bottom: 0.35rem; }

.page-content a { color: var(--accent); }

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.contact-form .btn-primary {
    align-self: center;
    min-width: 200px;
}

.contact-form .footer-text {
    text-align: center;
}

/* About page */
.about-page .container {
    max-width: 720px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0 2.5rem;
}

.about-feature {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.about-feature h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 0;
    line-height: 1.5;
}

.about-cta-text {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-soft);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-border);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bg-main);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

/* Thank you */
.thank-you-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
}

.thank-you-card {
    text-align: center;
    padding: 2.5rem;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.thank-you-card .icon-check {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: var(--accent);
}

.thank-you-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.thank-you-card p {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-subheading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--accent); }

.footer-warnings {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.footer-warning {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.footer-warning--highlight {
    font-size: 0.9rem;
    color: var(--accent);
}

.footer-warning--highlight strong { font-weight: 700; }

.compliance-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.compliance-item img {
    height: 48px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.compliance-item:hover img { opacity: 1; }

.compliance-item--badge img {
    height: 56px;
    width: 56px;
}

.footer-compliance-row {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-18-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge-18 {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-main);
    font-size: 0.85rem;
    font-weight: 800;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 1.25rem;
}

.footer-legal-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-legal-links a:hover { color: var(--accent); }

.footer-legal-sep {
    color: var(--border);
    font-size: 0.8rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-copyright,
.footer-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-email:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
    .casino-card {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
    }

    .casino-card__rank {
        grid-row: auto;
        font-size: 2rem;
    }

    .casino-card__aside {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
    }

    .casino-card__score { align-items: flex-start; text-align: left; }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 1rem 1.25rem;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        gap: 0.75rem;
    }

    .main-nav.is-open { display: flex; }

    .nav-toggle { display: flex; }

    .casino-card {
        padding: 1rem;
        grid-template-columns: 2.5rem 1fr;
    }

    .casino-card__body {
        grid-template-columns: 1fr;
    }

    .casino-card__logo-wrap {
        width: 100%;
        max-width: 120px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
