:root {
    --bg-dark: #f6f7fb;
    --bg-card: #ffffff;
    --bg-card-hover: #fafbfe;
    --bg-accent: #eef4ff;
    --blue: #1e63eb;
    --blue-bright: #2c75ff;
    --blue-dark: #1849b8;
    --blue-deep: #0a3c9e;
    --gold: #e0a82e;
    --gold-bright: #ffc83d;
    --gold-dark: #b78420;
    --silver: #8a93a6;
    --text-primary: #0f1426;
    --text-secondary: #4a5168;
    --text-muted: #8b91a3;
    --border: rgba(15, 20, 38, 0.08);
    --border-strong: rgba(30, 99, 235, 0.55);
    --success: #16a34a;
    --danger: #dc2626;
    --shadow-card: 0 8px 28px rgba(15, 20, 38, 0.08);
    --shadow-blue: 0 8px 28px rgba(30, 99, 235, 0.28);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.site-header {
    padding: 28px 0 0;
    background: var(--bg-dark);
}

.header-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(30, 99, 235, 0.28);
}

.header-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(255,255,255,0.5) 0%, transparent 25%),
        radial-gradient(circle at 85% 70%, rgba(255,255,255,0.3) 0%, transparent 25%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%23ffffff' stroke-width='1.4' opacity='0.55'><circle cx='30' cy='30' r='14'/><circle cx='30' cy='30' r='8'/><rect x='110' y='18' width='24' height='28' rx='4'/><text x='122' y='38' text-anchor='middle' font-family='Arial' font-size='16' fill='%23ffffff' stroke='none' opacity='0.7'>A♠</text><rect x='20' y='100' width='28' height='28' rx='5'/><circle cx='28' cy='108' r='2' fill='%23ffffff' stroke='none'/><circle cx='40' cy='108' r='2' fill='%23ffffff' stroke='none'/><circle cx='34' cy='114' r='2' fill='%23ffffff' stroke='none'/><circle cx='28' cy='120' r='2' fill='%23ffffff' stroke='none'/><circle cx='40' cy='120' r='2' fill='%23ffffff' stroke='none'/><circle cx='120' cy='110' r='16'/><circle cx='120' cy='110' r='3' fill='%23ffffff' stroke='none'/><path d='M120 94 L120 90 M120 130 L120 126 M104 110 L100 110 M140 110 L136 110' stroke-width='2'/></g></svg>");
    background-size: auto, auto, 200px 200px;
    background-repeat: no-repeat, no-repeat, repeat;
}

.header-card-inner {
    position: relative;
    z-index: 1;
    padding: 32px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.site-header .container {
    position: relative;
}

/* BRAND */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    align-self: flex-start;
    transition: opacity 0.15s ease;
}

.brand:hover {
    opacity: 0.92;
}

.brand-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-text {
    display: flex;
    align-items: center;
    line-height: 1;
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.brand-name-accent {
    color: #ffffff;
    font-weight: 800;
}

.page-title {
    font-size: clamp(22px, 3.8vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    max-width: 820px;
}

.reviews-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 28px;
    padding-top: 4px;
}

.reviews-counter {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.counter-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.counter-number {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.reviews-sources {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.source-img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease;
}

.source-img:hover {
    transform: translateY(-2px);
}

/* MAIN */
.main-content {
    padding: 40px 0 60px;
}

.casino-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CASINO CARD */
.casino-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.casino-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
}

.casino-card--top {
    border-color: var(--blue);
    box-shadow: var(--shadow-blue);
}

.casino-card--top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 99, 235, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.casino-rank {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: linear-gradient(90deg, rgba(30, 99, 235, 0.10) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}

.casino-card:not(.casino-card--top) .casino-rank {
    background: linear-gradient(90deg, rgba(138, 147, 166, 0.12) 0%, transparent 100%);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue) 100%);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(30, 99, 235, 0.4);
}

.rank-badge--silver {
    background: linear-gradient(135deg, #b9c1d1 0%, var(--silver) 100%);
    box-shadow: 0 4px 12px rgba(138, 147, 166, 0.35);
}

.rank-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.casino-card:not(.casino-card--top) .rank-label {
    color: var(--silver);
}

.casino-main {
    display: grid;
    grid-template-columns: 180px 1fr 220px 200px;
    gap: 24px;
    padding: 24px;
    align-items: center;
}

.casino-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.casino-logo img {
    width: 100%;
    max-width: 160px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease;
}

.casino-card:hover .casino-logo img {
    transform: scale(1.04);
}

.casino-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.casino-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: var(--gold-bright);
    font-size: 16px;
    letter-spacing: 2px;
}

.star-half {
    opacity: 0.5;
}

.rating-value {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.casino-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
}

.casino-features b {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 4px;
}

.casino-bonus {
    background: var(--bg-accent);
    border: 1px solid rgba(30, 99, 235, 0.18);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bonus-headline {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}

.bonus-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.bonus-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--success);
    line-height: 1.2;
}

.bonus-extra {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.promo-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px dashed var(--blue);
    border-radius: 10px;
}

.promo-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.promo-value {
    flex: 1;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 2px;
}

.promo-copy {
    background: transparent;
    border: none;
    color: var(--blue);
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.promo-copy:hover {
    background: rgba(30, 99, 235, 0.14);
}

.promo-copy.copied {
    color: var(--success);
}

.bonus-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.meta-row b {
    color: var(--text-primary);
    font-weight: 700;
}

.casino-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    border: none;
    text-decoration: none;
    width: 100%;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-dark) 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(30, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(30, 99, 235, 0.55);
}

.btn-primary:active {
    transform: translateY(0);
}

.action-note {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
}

/* INFO SECTION */
.info-section {
    margin-top: 60px;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.info-item {
    text-align: center;
}

.info-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.info-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* FOOTER */
.site-footer {
    margin-top: 60px;
    padding: 40px 0 28px;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.footer-disclaimer {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-disclaimer b {
    color: var(--text-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-age {
    color: var(--blue);
    font-weight: 700;
}

/* CLICKABLE BRAND LINKS (logo + name) */
.casino-brand-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.casino-brand-link:hover {
    opacity: 0.88;
}

.casino-brand-link:hover .casino-name {
    color: var(--blue);
}

a.casino-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.casino-name {
    transition: color 0.2s ease;
    display: inline-block;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .casino-main {
        grid-template-columns: 140px 1fr;
        gap: 20px;
    }
    .casino-bonus, .casino-action {
        grid-column: 1 / -1;
    }
    .casino-action .btn {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .header-card-inner {
        padding: 24px 22px;
        gap: 18px;
    }
    .brand-mark {
        width: 42px;
        height: 42px;
    }
    .brand-name {
        font-size: 22px;
    }
    .page-title {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .header-card {
        border-radius: 16px;
    }
    .casino-main {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .casino-logo {
        max-width: 200px;
        margin: 0 auto;
    }
    .reviews-stats {
        gap: 14px;
    }
    .sources-list {
        gap: 6px;
    }
    .info-section {
        padding: 28px 20px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
