/* ════════════════════════════════════════
   FANTABET — BOOKMAKERS PAGE STYLES
   (dipende da global.css per variabili e nav)
   ════════════════════════════════════════ */

/* ─── HERO ─── */
.bm-hero {
    background: var(--nav-bg);
    padding: 64px 48px 48px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.bm-hero::before {
    content: 'BOOKMAKERS';
    position: absolute;
    right: -20px; top: -10px;
    font-family: var(--font-display);
    font-size: 160px;
    font-weight: 900;
    color: rgba(255,255,255,0.025);
    letter-spacing: 10px;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
}

.bm-hero-inner { max-width: 760px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,65,10,0.15);
    border: 1px solid rgba(200,65,10,0.3);
    color: var(--red-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #f5f2eb;
    line-height: 1.05;
    margin-bottom: 16px;
}

.hero-title span { color: var(--gold-accent); }

.hero-subtitle {
    font-size: 15px;
    color: rgba(245,242,235,0.5);
    max-width: 520px;
    line-height: 1.65;
    font-weight: 400;
    margin-bottom: 32px;
}

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    color: var(--gold-accent);
    line-height: 1;
}

.hero-stat-label {
    font-size: 11px;
    color: rgba(245,242,235,0.4);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* ─── FILTERS ─── */
.filters-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 48px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 62px;
    z-index: 100;
    overflow-x: auto;
    scrollbar-width: none;
    transition: background 0.3s, border-color 0.3s;
}

.filters-bar::-webkit-scrollbar { display: none; }

.filter-tab {
    padding: 16px 18px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.filter-tab:hover  { color: var(--ink); }
.filter-tab.active { color: var(--red-accent); border-bottom-color: var(--red-accent); }

.filter-sep { width: 1px; height: 20px; background: var(--border); margin: 0 8px; flex-shrink: 0; }

.sort-group { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sort-label { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.sort-select {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    transition: background 0.3s, color 0.3s;
}

/* ─── PAGE CONTENT ─── */
.bm-list-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 48px 80px;
}

/* ─── FEATURED CARD ─── */
.featured-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.featured-badge {
    background: var(--red-accent);
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.section-rule { flex: 1; height: 1px; background: var(--border); }

.bm-featured-card {
    background: var(--nav-bg);
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    animation: bm-fadeUp 0.5s ease both;
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
}

.bm-featured-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-accent), var(--gold-accent));
}

@keyframes bm-fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bm-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }

.bm-logo-box {
    width: 72px; height: 72px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.bm-title-group { flex: 1; }

.bm-name {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 900;
    color: #f5f2eb;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.bm-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.tag-aams   { background: rgba(30,122,74,0.2);   color: #4ade80; border: 1px solid rgba(30,122,74,0.3); }
.tag-live   { background: rgba(200,65,10,0.2);   color: #fb923c; border: 1px solid rgba(200,65,10,0.3); }
.tag-casino { background: rgba(232,160,32,0.2);  color: var(--gold-accent); border: 1px solid rgba(232,160,32,0.3); }
.tag-mobile { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }

.tag-light-aams   { background: rgba(30,122,74,0.1);   color: var(--green-accent); border: 1px solid rgba(30,122,74,0.2); }
.tag-light-live   { background: rgba(200,65,10,0.1);   color: var(--red-accent);   border: 1px solid rgba(200,65,10,0.2); }
.tag-light-casino { background: rgba(232,160,32,0.1);  color: #a16207;             border: 1px solid rgba(232,160,32,0.2); }
.tag-light-mobile { background: rgba(99,102,241,0.08); color: #4f46e5;             border: 1px solid rgba(99,102,241,0.2); }

[data-theme="dark"] .tag-light-aams   { background: rgba(30,122,74,0.15);   color: #4ade80; border-color: rgba(30,122,74,0.3); }
[data-theme="dark"] .tag-light-live   { background: rgba(200,65,10,0.15);   color: #fb923c; border-color: rgba(200,65,10,0.3); }
[data-theme="dark"] .tag-light-casino { background: rgba(232,160,32,0.15);  color: var(--gold-accent); border-color: rgba(232,160,32,0.3); }
[data-theme="dark"] .tag-light-mobile { background: rgba(99,102,241,0.12);  color: #a5b4fc; border-color: rgba(99,102,241,0.3); }

.bm-score-box { text-align: center; flex-shrink: 0; }

.score-ring {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 3px solid var(--gold-accent);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    margin: 0 auto 4px;
}

.score-num   { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: var(--gold-accent); line-height: 1; }
.score-label { font-size: 9px; color: var(--muted); font-weight: 600; letter-spacing: 0.5px; }
.score-stars { font-size: 11px; color: var(--gold-accent); margin-bottom: 2px; }

/* Bonus strip */
.bonus-strip {
    background: rgba(232,160,32,0.07);
    border: 1px solid rgba(232,160,32,0.2);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.bonus-icon  { font-size: 22px; flex-shrink: 0; }
.bonus-text  { flex: 1; }
.bonus-title { font-size: 13px; font-weight: 700; color: var(--gold-accent); margin-bottom: 2px; }
.bonus-desc  { font-size: 12px; color: rgba(245,242,235,0.45); font-weight: 400; }
.bonus-value { font-family: var(--font-display); font-size: 30px; font-weight: 900; color: var(--gold-accent); letter-spacing: -0.5px; flex-shrink: 0; }

/* BM Stats grid */
.bm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.bm-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 12px 14px;
}

.bm-stat-label { font-size: 10px; color: rgba(245,242,235,0.35); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 4px; }
.bm-stat-value { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: #f5f2eb; }
.bm-stat-value.green { color: #4ade80; }

.bm-actions { display: flex; gap: 10px; }

.btn-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red-accent), var(--gold-accent));
    color: white !important;
    border: none;
    padding: 13px 24px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(200,65,10,0.3);
    text-decoration: none;
    flex: 1;
}

.btn-visit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(200,65,10,0.45); }

.btn-review {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(245,242,235,0.55);
    padding: 13px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-review:hover { border-color: rgba(255,255,255,0.3); color: #f5f2eb; }

/* ─── LIST HEADER ─── */
.list-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: 8px;
}

.list-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--ink);
    white-space: nowrap;
}

/* ─── BOOKMAKER ROWS ─── */
.bm-rows-wrap { display: flex; flex-direction: column; gap: 10px; }

.bm-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 44px 52px 1fr auto auto auto;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: all 0.18s;
    animation: bm-fadeUp 0.4s ease both;
    position: relative;
    overflow: hidden;
}

.bm-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--border);
    transition: background 0.2s;
}

.bm-row:hover { border-color: rgba(200,65,10,0.25); box-shadow: var(--shadow); transform: translateX(2px); }
.bm-row:hover::before { background: var(--red-accent); }
.bm-row.highlight { background: rgba(200,65,10,0.03); border-color: rgba(200,65,10,0.15); }

[data-theme="dark"] .bm-row { background: var(--surface2); }
[data-theme="dark"] .bm-row.highlight { background: rgba(200,65,10,0.07); }

.rank-num {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: var(--muted);
    text-align: center;
    transition: color 0.2s;
}

.bm-row:hover .rank-num { color: var(--red-accent); }

.row-logo {
    width: 48px; height: 48px;
    border-radius: 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.row-info { min-width: 0; }
.row-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.row-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.row-bonus { text-align: center; min-width: 110px; }
.row-bonus-value { font-family: var(--font-display); font-size: 20px; font-weight: 900; color: var(--red-accent); line-height: 1; }
.row-bonus-label { font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 2px; }

.row-score-wrap { text-align: center; min-width: 60px; }
.row-score-num { font-family: var(--font-display); font-size: 24px; font-weight: 900; color: var(--ink); line-height: 1; }
.row-stars { font-size: 10px; color: var(--gold-accent); }

.row-cta {
    background: var(--red-accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.row-cta:hover { background: #a33509; transform: translateY(-1px); color: white; }

/* ─── INFO BOX ─── */
.info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 32px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: background 0.3s;
}

.info-icon  { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.info-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.info-text  { font-size: 12px; color: var(--muted); line-height: 1.6; font-weight: 400; }

/* ─── FOOTER DARK ─── */
.fantabet-footer { background: #0d0f14; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .bm-hero, .bm-list-content, .filters-bar { padding-left: 20px; padding-right: 20px; }
    .bm-row { grid-template-columns: 36px 44px 1fr auto; }
    .row-bonus, .row-score-wrap { display: none; }
    .bm-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .hero-title { font-size: 36px; }
    .hero-stats { gap: 20px; }
    .bm-featured-card { padding: 20px; }
    .bm-header { flex-wrap: wrap; }
    .bm-row { grid-template-columns: 36px 1fr auto; gap: 10px; }
    .row-logo { display: none; }
    .bonus-value { font-size: 22px; }
    .bm-actions { flex-direction: column; }
    .btn-visit { text-align: center; }
}

/* ─── CASINO VARIANTS ─── */

/* Bonus strip casinò */
.bonus-strip--casino {
    background: rgba(232,160,32,0.07);
    border-color: rgba(232,160,32,0.25);
    margin-top: -8px;
    border-radius: 0 0 10px 10px;
    border-top: 1px dashed rgba(232,160,32,0.2);
}

.bonus-title--casino { color: var(--gold-accent); }
.bonus-value--casino { color: var(--gold-accent); }

/* CTA Casinò nella featured card */
.btn-visit--casino {
    background: linear-gradient(135deg, #a16207, var(--gold-accent)) !important;
    box-shadow: 0 4px 20px rgba(232,160,32,0.25) !important;
    flex: 1;
}

.btn-visit--casino:hover {
    box-shadow: 0 8px 28px rgba(232,160,32,0.45) !important;
}

/* Row CTA doppia (Sport + Casinò) */
.row-ctas {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    min-width: 110px;
}

.row-cta--casino {
    background: linear-gradient(135deg, #a16207, var(--gold-accent)) !important;
    color: white !important;
    font-size: 13px;
}

.row-cta--casino:hover {
    background: linear-gradient(135deg, #92570a, #d4900e) !important;
    color: white !important;
}

/* Aggiusta griglia riga per doppia CTA */
.bm-row {
    grid-template-columns: 44px 52px 1fr auto auto auto !important;
}

/* Adatta la colonna CTA su mobile */
@media (max-width: 900px) {
    .bm-row { grid-template-columns: 36px 44px 1fr auto !important; }
    .row-ctas { flex-direction: row; min-width: auto; }
    .row-cta, .row-cta--casino { font-size: 11px; padding: 7px 10px; }
}

@media (max-width: 600px) {
    .bm-actions { flex-wrap: wrap; }
    .btn-visit, .btn-visit--casino { flex: 1 1 calc(50% - 5px); text-align: center; justify-content: center; }
}
