/* ─────────────────────────────────────────────────────────────────
   Streamers — Hub + Profile styles
   URLs: /kasinostriimaajat/ + /streamer/[slug]/
   ───────────────────────────────────────────────────────────────── */

/* ═══ Breadcrumbs (local copy so it works without info-page.css) ═══ */
.streamers-hub .breadcrumbs,
.streamer-profile .breadcrumbs {
    text-align: center;
    padding: 12px 0;
    margin: 0 0 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}
.streamers-hub .breadcrumbs a,
.streamer-profile .breadcrumbs a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.streamers-hub .breadcrumbs a:hover,
.streamer-profile .breadcrumbs a:hover {
    color: var(--accent, #ffc63b);
}
.streamers-hub .breadcrumb-sep,
.streamer-profile .breadcrumb-sep {
    margin: 0 4px;
    color: rgba(255,255,255,0.3);
}
.streamers-hub .breadcrumb-current,
.streamer-profile .breadcrumb-current {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

/* ═══ Shared container — SAME WIDTH on hub and profile ═══ */
/* No horizontal padding — parent .wrap already provides side padding. */
.streamers-hub,
.streamer-profile {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 60px;
    display: block;
}

.streamer-profile {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Force block layout — overrides any global header/section flex rules */
.streamers-hub-hero {
    display: block !important;
    text-align: center;
    padding: 16px 16px 28px;
    width: 100%;
    box-sizing: border-box;
}

/* Empty state when no streamers published yet */
.streamers-empty {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    color: var(--muted);
    font-size: 15px;
}

.streamers-hub-hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.1;
    margin: 0 0 12px;
    font-weight: 900;
    color: var(--text);
    text-shadow: 0 3px 14px rgba(0,0,0,0.6);
}

.streamers-hub-intro {
    max-width: 740px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.streamer-tier-section {
    margin-top: 32px;
}

.streamer-tier-section > h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}

.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.streamer-card {
    background: linear-gradient(180deg, var(--card-2, #230c47), var(--card, #18062f));
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.streamer-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent, #ffc63b);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.streamer-card-link {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 16px;
    text-decoration: none;
    color: var(--text);
}

.streamer-card-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.streamer-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamer-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 900;
    color: var(--accent, #ffc63b);
    background: linear-gradient(135deg, rgba(255,198,59,0.15), rgba(255,149,0,0.25));
}

.streamer-card-platform {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.pl-twitch  { background: #9146ff; color: #fff; }
.pl-kick    { background: #53fc18; color: #000; }
.pl-youtube { background: #ff0000; color: #fff; }
.pl-multi   { background: var(--accent, #ffc63b); color: #1e0c35; }

.streamer-card-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.streamer-card-name {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.streamer-card-realname {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.streamer-card-bio {
    margin: 4px 0 6px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(247,234,255,0.75);
}

.streamer-card-stats {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: var(--muted);
    margin-top: auto;
}

.streamer-card-stats strong {
    color: var(--accent, #ffc63b);
}

/* ═══ SEO content block on hub — full container width ═══ */
.streamers-seo-content {
    margin: 32px 0 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px 30px;
    color: rgba(247,234,255,0.85);
    line-height: 1.7;
}

.streamers-seo-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 24px 0 12px;
}
.streamers-seo-content h2:first-child { margin-top: 0; }

.streamers-seo-content ul { padding-left: 20px; margin: 0 0 12px; }
.streamers-seo-content li { margin-bottom: 6px; }
.streamers-seo-content a { color: var(--accent, #ffc63b); text-decoration: underline; }

/* ═══ Single Profile Page ═══ */
/* .streamer-profile base container defined above (shared with .streamers-hub) */

.streamer-hero {
    background: linear-gradient(180deg, var(--card-2, #230c47), var(--card, #18062f));
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 28px;
}

.streamer-hero-inner {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: center;
}

.streamer-hero-avatar {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0,0,0,0.25);
}

.streamer-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamer-hero-content { min-width: 0; }

.streamer-title {
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
    margin: 0 0 4px;
    font-weight: 900;
    color: var(--text);
}

.streamer-title-suffix {
    font-size: 0.55em;
    font-weight: 700;
    color: var(--accent, #ffc63b);
    display: block;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.streamer-real-name {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    font-style: italic;
}

.streamer-hero-bio {
    margin: 0 0 14px;
    color: rgba(247,234,255,0.85);
    line-height: 1.55;
    font-size: 15px;
}

.streamer-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--muted);
}

.streamer-badge {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.6px;
}

.streamer-stat strong {
    color: var(--accent, #ffc63b);
    font-size: 14px;
}

.streamer-hero-cta { margin-top: 8px; }

.streamer-watch-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(180deg, var(--button-bg, #ffc63b), var(--button-bg-end, #ff9500));
    color: var(--button-text, #1e0c35);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    box-shadow: var(--button-shadow, 0 6px 20px rgba(255,198,59,0.35));
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.streamer-watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,198,59,0.45);
}

/* ═══ Profile sections ═══ */
.streamer-section {
    background: linear-gradient(180deg, var(--card-2, #230c47), var(--card, #18062f));
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px 28px;
}

.streamer-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.streamer-bio-content {
    color: rgba(247,234,255,0.85);
    line-height: 1.75;
    font-size: 15px;
}
.streamer-bio-content p { margin: 0 0 14px; }
.streamer-bio-content a { color: var(--accent, #ffc63b); text-decoration: underline; }
.streamer-bio-content strong { color: var(--text); }

/* Biggest win block */
.streamer-biggest-win .biggest-win-stat {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.biggest-win-amount {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    color: var(--accent, #ffc63b);
}

.biggest-win-slot {
    color: var(--muted);
    font-size: 15px;
}

.biggest-win-slot strong { color: var(--text); }

/* Favourite casino card */
.streamer-favourite-intro {
    margin: 0 0 18px;
    color: rgba(247,234,255,0.8);
    font-size: 15px;
    line-height: 1.6;
}

.streamer-casino-card {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
}

.scc-logo {
    width: 180px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.scc-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.scc-logo strong { color: var(--text); font-size: 16px; }

.scc-info { min-width: 0; }
.scc-name { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--text); }
.scc-bonus { margin: 0 0 6px; color: rgba(247,234,255,0.85); font-weight: 600; font-size: 14px; }
.scc-rating { margin: 0; color: var(--muted); font-size: 13px; }
.scc-rating strong { color: var(--accent, #ffc63b); font-size: 15px; }

.scc-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

.scc-cta {
    display: inline-block;
    padding: 11px 24px;
    background: linear-gradient(180deg, var(--button-bg, #ffc63b), var(--button-bg-end, #ff9500));
    color: var(--button-text, #1e0c35);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: var(--button-shadow, 0 6px 20px rgba(255,198,59,0.35));
}

.scc-review-link {
    color: var(--accent, #ffc63b);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.scc-review-link:hover { text-decoration: underline; }

/* Socials */
.streamer-socials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.streamer-social-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.15s ease;
}

.streamer-social-link:hover {
    transform: translateY(-2px);
    border-color: var(--accent, #ffc63b);
}

.streamer-social-link.social-twitch:hover  { background: #9146ff; border-color: #9146ff; }
.streamer-social-link.social-kick:hover    { background: #53fc18; color: #000; border-color: #53fc18; }
.streamer-social-link.social-youtube:hover { background: #ff0000; border-color: #ff0000; }

/* Related streamers */
.streamer-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.streamer-related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.15s ease;
}

.streamer-related-card:hover {
    border-color: var(--accent, #ffc63b);
    transform: translateY(-2px);
}

.streamer-related-card img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.streamer-related-card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.streamer-related-card strong { font-size: 14px; color: var(--text); }
.streamer-related-card span { font-size: 11px; color: var(--muted); }

/* ═══ Mobile ═══ */
@media (max-width: 720px) {
    .streamer-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }
    .streamer-hero-avatar { width: 120px; height: 120px; margin: 0 auto; }
    .streamer-hero-meta { justify-content: center; }

    .streamer-casino-card {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }
    .scc-logo { width: 100%; margin: 0 auto; }
    .scc-actions { align-items: stretch; }
    .scc-cta { width: 100%; text-align: center; }
    .scc-review-link { text-align: center; }

    .streamer-card-link { grid-template-columns: 90px 1fr; gap: 12px; padding: 14px; }
    .streamer-card-avatar { width: 90px; height: 90px; }
    .streamer-avatar-placeholder { font-size: 32px; }

    .streamer-section { padding: 18px 18px; }
    .streamer-bio-content { font-size: 14px; }
}

/* ═══ 3-Favourite Comparison Table ═══ */
.streamer-fav-table-wrap {
    overflow-x: auto;
    margin: 0 -8px 20px;
}

.streamer-fav-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-size: 14px;
}

.streamer-fav-table thead th,
.streamers-top thead th {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    padding: 10px 12px;
    text-align: left;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
}

.streamer-fav-table tbody tr,
.streamers-top tbody tr {
    background: rgba(255,255,255,0.04);
    transition: background 0.2s;
}
.streamer-fav-table tbody tr:hover,
.streamers-top tbody tr:hover { background: rgba(255,255,255,0.08); }

.streamer-fav-table td,
.streamers-top td {
    padding: 14px 12px;
    vertical-align: middle;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.streamer-fav-table td:first-child,
.streamers-top td:first-child {
    border-left: 1px solid rgba(255,255,255,0.06);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.streamer-fav-table td:last-child,
.streamers-top td:last-child {
    border-right: 1px solid rgba(255,255,255,0.06);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.cell-rank { font-weight: 900; color: var(--accent, #ffc63b); width: 40px; text-align: center; }
.cell-casino-link { display: inline-flex; align-items: center; text-decoration: none; }
.cell-casino-link img { max-height: 44px; max-width: 110px; object-fit: contain; }
.cell-casino-name { color: var(--text); font-weight: 700; }
.cell-bonus { color: var(--text); font-weight: 600; max-width: 200px; }
.cell-rating strong { color: var(--accent, #ffc63b); font-size: 16px; font-weight: 900; }
.cell-rating-max { color: var(--muted); font-size: 12px; }
.cell-withdrawal, .cell-license { color: var(--muted); font-size: 13px; }
.col-cta, .cell-cta { text-align: right; width: 120px; }

.streamer-fav-btn {
    display: inline-block;
    padding: 9px 16px;
    background: linear-gradient(180deg, var(--button-bg, #ffc63b), var(--button-bg-end, #ff9500));
    color: var(--button-text, #1e0c35);
    border: 1px solid var(--button-border, transparent);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 12.5px;
    white-space: nowrap;
    box-shadow: var(--button-shadow, 0 4px 14px rgba(255,198,59,0.35));
    transition: transform 0.15s ease;
}
.streamer-fav-btn:hover { transform: translateY(-2px); }

/* Card grid (mobile) */
.streamer-fav-grid { display: none; }

@media (max-width: 900px) {
    .streamer-fav-table-wrap { display: none; }
    .streamer-fav-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
}

/* Mobile/compact card — fully centered single-column layout */
.streamer-fav-grid .streamer-casino-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 22px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    position: relative;
}

/* Rank badge — small pill, top-left corner */
.streamer-fav-grid .scc-rank {
    position: absolute;
    top: 14px;
    left: 14px;
    font-weight: 900;
    color: var(--accent, #ffc63b);
    font-size: 14px;
    background: rgba(255, 198, 59, 0.12);
    border: 1px solid rgba(255, 198, 59, 0.3);
    border-radius: 20px;
    padding: 3px 10px;
    letter-spacing: 0.4px;
}

.streamer-fav-grid .scc-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 0 4px;
    text-decoration: none;
}

.streamer-fav-grid .scc-logo img {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.streamer-fav-grid .scc-logo strong {
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
}

.streamer-fav-grid .scc-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.streamer-fav-grid .scc-name {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

/* Hide name if logo is visible (avoids redundancy on mobile) */
.streamer-fav-grid .scc-logo:has(img) + .scc-info .scc-name {
    display: none;
}

.streamer-fav-grid .scc-bonus {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.streamer-fav-grid .scc-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0 0;
}

.streamer-fav-grid .scc-meta strong { color: var(--accent, #ffc63b); font-weight: 800; }

.streamer-fav-grid .scc-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.streamer-fav-grid .scc-cta {
    width: 100%;
    text-align: center;
    padding: 13px 24px;
    font-size: 15px;
}

.streamer-fav-grid .scc-review-link {
    font-size: 14px;
    font-weight: 700;
}

/* ═══ Top streamers table on hub ═══ */
.cell-streamer a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.cell-streamer-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.cell-followers { color: var(--accent, #ffc63b); font-weight: 700; }
.streamers-top-wrap { overflow-x: auto; margin: 0 -8px; }
.streamers-top { width: 100%; border-collapse: separate; border-spacing: 0 10px; font-size: 14px; }

/* ═══ FAQ accordion ═══ */
.streamer-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.streamer-faq-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.streamer-faq-item summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    list-style: none;
    position: relative;
    padding-right: 44px;
}

.streamer-faq-item summary::-webkit-details-marker { display: none; }

.streamer-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 300;
    color: var(--accent, #ffc63b);
    transition: transform 0.2s ease;
}

.streamer-faq-item[open] summary::after {
    content: "−";
}

.streamer-faq-item summary:hover { background: rgba(255,255,255,0.03); }

.streamer-faq-item p {
    margin: 0;
    padding: 0 18px 16px;
    color: rgba(247,234,255,0.8);
    line-height: 1.6;
    font-size: 14px;
}

/* ═══ Explore cross-link grid ═══ */
.streamer-explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.streamer-explore-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.15s ease;
}

.streamer-explore-card:hover {
    border-color: var(--accent, #ffc63b);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.06);
}

.streamer-explore-card strong { font-size: 15px; color: var(--text); }
.streamer-explore-card span { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ═══ Streamer intro SEO text ═══ */
.streamer-intro p {
    color: rgba(247,234,255,0.85);
    line-height: 1.7;
    font-size: 15px;
    margin: 0 0 12px;
}
.streamer-intro a { color: var(--accent, #ffc63b); text-decoration: underline; }
.streamer-intro strong { color: var(--text); }

/* Biggest win paragraph */
.streamer-biggest-win p {
    margin: 12px 0 0;
    color: rgba(247,234,255,0.8);
    line-height: 1.6;
    font-size: 14px;
}
.streamer-biggest-win strong { color: var(--text); }

/* Hide scc-rank on single-card legacy layout */
.streamer-favourite > .streamer-casino-card .scc-rank { display: none; }
