/* ============================================================
 * CHAT 5 — LIVE & ENGAGEMENT CSS
 * Trovada — V32
 * 
 * Live scores, ticker, groepstabellen, affiliate blokken,
 * poule systeem, push notification prompt.
 * ============================================================ */

/* ── LIVE SCORE TICKER ── */
.trvd-ticker {
    background: linear-gradient(90deg, #111 0%, #1a1a2e 100%);
    overflow: hidden;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: relative;
    z-index: 100;
}
.trvd-ticker__scroll {
    display: flex;
    gap: 32px;
    animation: trvd-scroll 30s linear infinite;
    white-space: nowrap;
    padding: 0 16px;
}
.trvd-ticker__match {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    flex-shrink: 0;
}
.trvd-ticker__match--live {
    color: #fff;
    font-weight: 600;
}
.trvd-ticker__match b {
    color: #FF6B00;
    font-size: 14px;
}
.trvd-ticker__live-dot {
    width: 6px; height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: wk-pulse-green 1.5s infinite;
}
.trvd-ticker__time {
    color: rgba(255,255,255,.4);
    font-size: 11px;
}
.trvd-ticker__status {
    color: rgba(255,255,255,.35);
    font-size: 11px;
}
@keyframes trvd-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .trvd-ticker__scroll { animation-duration: 20s; }
    .trvd-ticker__match { font-size: 12px; }
}


/* ── GROEPSTABELLEN ── */
.trvd-groep {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.trvd-groep--oranje {
    border-color: #FF6B00;
    background: rgba(255,107,0,.04);
}
.trvd-groep__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    color: #fff;
    margin: 0 0 12px;
}
.trvd-groep__tabel {
    width: 100%;
    border-collapse: collapse;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
}
.trvd-groep__tabel th {
    color: rgba(255,255,255,.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: left;
}
.trvd-groep__tabel td {
    padding: 8px;
    color: rgba(255,255,255,.8);
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.trvd-groep__tabel tr:last-child td { border-bottom: 0; }
.trvd-groep__nl td {
    color: #FF6B00 !important;
    font-weight: 600;
}
.trvd-alle-groepen {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
@media (max-width: 768px) {
    .trvd-alle-groepen { grid-template-columns: 1fr; }
}


/* ── LIVE SCORES WIDGET ── */
.trvd-live {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    overflow: hidden;
}
.trvd-live__header {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(255,255,255,.04);
}
.trvd-live__dot {
    width: 8px; height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: wk-pulse-green 1.2s infinite;
}
.trvd-live__body { padding: 12px 16px; }
.trvd-live__loading { color: rgba(255,255,255,.4); font-size: 13px; }


/* ── NEDERLAND SCHEMA ── */
.trvd-nl-schema h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: #FF6B00;
    margin-bottom: 16px;
}
.trvd-nl-match {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color .2s;
}
.trvd-nl-match:hover { border-color: rgba(255,107,0,.3); }
.trvd-nl-match--live {
    border-color: #4ade80;
    background: rgba(74,222,128,.05);
    animation: trvd-live-glow 2s infinite;
}
@keyframes trvd-live-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,.15); }
    50% { box-shadow: 0 0 12px 2px rgba(74,222,128,.15); }
}
.trvd-nl-match__date {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}
.trvd-nl-match__teams {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.trvd-nl-match__teams strong {
    color: #FF6B00;
    font-size: 18px;
    margin: 0 6px;
}
.trvd-nl-match__badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
    margin-left: 8px;
}
.trvd-nl-match__badge--live {
    background: #4ade80;
    color: #000;
}
.trvd-nl-match__venue {
    font-size: 12px;
    color: rgba(255,255,255,.35);
    margin-top: 4px;
}


/* ── STADIONS ── */
.trvd-stadions h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: #fff;
    margin-bottom: 16px;
}
.trvd-stadions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.trvd-stadion {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 14px;
}
.trvd-stadion h4 { margin: 0 0 4px; font-size: 14px; color: #fff; }
.trvd-stadion p { margin: 2px 0; font-size: 12px; color: rgba(255,255,255,.5); }
.trvd-stadion__cap { color: rgba(255,255,255,.7) !important; font-weight: 600; }
.trvd-stadion__badges { color: #FF6B00 !important; font-weight: 600; }


/* ── AFFILIATE BLOKKEN ── */
.trvd-aff { margin: 20px 0; }
.trvd-aff__context {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    margin-bottom: 12px;
}
.trvd-aff__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.trvd-aff__card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .2s;
}
.trvd-aff__card:hover { border-color: rgba(255,107,0,.3); }
.trvd-aff__logo {
    max-height: 32px;
    max-width: 120px;
    object-fit: contain;
}
.trvd-aff__info strong {
    display: block;
    color: #fff;
    font-size: 15px;
}
.trvd-aff__info span {
    font-size: 12px;
    color: rgba(255,255,255,.5);
}
.trvd-aff__cta {
    display: inline-block;
    padding: 8px 18px;
    background: #FF6B00;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background .2s;
}
.trvd-aff__cta:hover { background: #e55d00; }
.trvd-aff__disclaimer {
    font-size: 10px;
    color: rgba(255,255,255,.3);
    margin-top: 12px;
    line-height: 1.4;
}
/* Inline layout */
.trvd-aff--inline .trvd-aff__inline {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255,107,0,.1);
    color: #FF6B00 !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    margin: 2px;
}
.trvd-aff--inline .trvd-aff__inline:hover { background: rgba(255,107,0,.2); }
/* Sidebar layout */
.trvd-aff--sidebar .trvd-aff__sidebar-title {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.trvd-aff__sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    text-decoration: none;
    color: rgba(255,255,255,.7) !important;
    font-size: 13px;
}
.trvd-aff__sidebar-link:hover { color: #FF6B00 !important; }
.trvd-aff__arrow { color: rgba(255,255,255,.3); }


/* ── POULE ── */
.trvd-poule, .trvd-leaderboard {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 20px;
    min-height: 200px;
}


/* ── PUSH PROMPT ── */
.trvd-push-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    width: 90%;
    max-width: 420px;
}
.trvd-push-prompt__inner {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    position: relative;
}
.trvd-push-prompt__close {
    position: absolute;
    top: 8px; right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,.4);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}
.trvd-push-prompt__text {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
}
.trvd-push-prompt__buttons {
    display: flex;
    gap: 10px;
}
.trvd-push-prompt__btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}
.trvd-push-prompt__btn:hover { opacity: .85; }
.trvd-push-prompt__btn--yes {
    background: #FF6B00;
    color: #fff;
}
.trvd-push-prompt__btn--no {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
}


/* ── LIGHT MODE — body.wk-light overrides ── */
/* Ticker */
body.wk-light .trvd-ticker { background: linear-gradient(90deg, #f8f8f8, #fff); border-bottom-color: #e0e0e0; }
body.wk-light .trvd-ticker__match { color: #555; }
body.wk-light .trvd-ticker__match--live { color: #111; }
body.wk-light .trvd-ticker__time { color: #999; }
body.wk-light .trvd-ticker__status { color: #aaa; }

/* Groepstabellen */
body.wk-light .trvd-groep { background: #fff; border-color: #e0e0e0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
body.wk-light .trvd-groep--oranje { border-color: #FF6B00; background: #fff8f3; }
body.wk-light .trvd-groep__title { color: #111; }
body.wk-light .trvd-groep__tabel th { color: #888; border-bottom-color: #e0e0e0; }
body.wk-light .trvd-groep__tabel td { color: #333; border-bottom-color: #f0f0f0; }

/* Live scores */
body.wk-light .trvd-live { background: #fff; border-color: #e0e0e0; }
body.wk-light .trvd-live__header { color: #111; background: #f8f8f8; }
body.wk-light .trvd-live__loading { color: #999; }

/* NL Schema */
body.wk-light .trvd-nl-match { background: #fff; border-color: #e0e0e0; }
body.wk-light .trvd-nl-match:hover { border-color: rgba(255,107,0,.4); }
body.wk-light .trvd-nl-match__date { color: #888; }
body.wk-light .trvd-nl-match__teams { color: #111; }
body.wk-light .trvd-nl-match__venue { color: #999; }
body.wk-light .trvd-nl-match__badge { background: #f0f0f0; color: #666; }

/* Stadions */
body.wk-light .trvd-stadions h3 { color: #111; }
body.wk-light .trvd-stadion { background: #fff; border-color: #e0e0e0; }
body.wk-light .trvd-stadion h4 { color: #111; }
body.wk-light .trvd-stadion p { color: #666; }
body.wk-light .trvd-stadion__cap { color: #333 !important; }

/* Affiliates */
body.wk-light .trvd-aff__context { color: #555; }
body.wk-light .trvd-aff__card { background: #fff; border-color: #e0e0e0; }
body.wk-light .trvd-aff__info strong { color: #111; }
body.wk-light .trvd-aff__info span { color: #666; }
body.wk-light .trvd-aff__disclaimer { color: #999; }
body.wk-light .trvd-aff--sidebar .trvd-aff__sidebar-title { color: #888; }
body.wk-light .trvd-aff__sidebar-link { color: #333 !important; border-bottom-color: #f0f0f0; }
body.wk-light .trvd-aff__arrow { color: #ccc; }

/* Poule & Leaderboard */
body.wk-light .trvd-poule,
body.wk-light .trvd-leaderboard { background: #fff; border-color: #e0e0e0; }

/* Push prompt */
body.wk-light .trvd-push-prompt__inner { background: #fff; border-color: #ddd; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
body.wk-light .trvd-push-prompt__close { color: #999; }
body.wk-light .trvd-push-prompt__text { color: #111; }
body.wk-light .trvd-push-prompt__btn--no { background: #f0f0f0; color: #555; }

/* ── V33h FIXES ── */

/* Menu alignment: Voetbal en Alle sporten op zelfde lijn */
.main-header-bar .main-header-menu > .menu-item > a,
.main-header-bar .main-header-menu > .menu-item > .ast-menu-toggle,
.ast-header-sections-navigation .menu-item a {
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
}
.main-header-bar .main-header-menu {
    display: flex !important;
    align-items: center !important;
}

/* Triple newsletter fix: hide in-content signup when sidebar has one */
.wk-sport-page .wk-email-inline-box {
    display: none;
}
/* Show only the sidebar newsletter */
.wk-sidebar .wk-email-sidebar {
    display: block;
}
