/**
 * cards.css - Estilos Modulares dos Cards de Jogos (Apostas Esportivas)
 * Suporte a múltiplos layouts selecionáveis no painel:
 * 1. Clássico / Padrão Atual (game-card-individual)
 * 2. Duelo Grande / Destaque (game-card-featured-large)
 * 3. Compacto (compact-game-card)
 */

/* ==========================================================================
   1. ESTILO 1: PADRÃO ATUAL (CLÁSSICO) - PRESERVADO INTEGRALMENTE
   ========================================================================== */
.cpm-CouponPodModule, .card, .game-card {
    background-color: var(--bg-card, #1e293b) !important;
    border: 1px solid var(--card-border, #333) !important;
    border-radius: 12px !important;
}

.game-card-individual {
    margin-bottom: 2px !important;
    border-radius: 15px !important;
    position: relative;
    background-color: var(--bg-card, #1e293b) !important;
    border: 1px solid var(--card-border, #333) !important;
}

.cpm-SplashHeader {
    background-color: var(--league-header-bg, #0f172a) !important;
    color: var(--league-name-color, #ffffff) !important;
    padding: 12px 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
}
.cpm-SplashHeader img { width: 24px; height: 24px; object-fit: contain; }

.cpm-CouponPodMarketGrid { width: 100%; }
.gl-MarketGroupContainer { display: flex; flex-direction: row; width: 100%; }

.cpm-MarketFixture {
    flex: 3;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.cpm-MarketOdds {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 60px;
    position: relative;
}

.cpm-MarketFixtureDateHeader, .cpm-MarketOddsHeader {
    height: 36px;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted, #a0a0a0);
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cpm-MarketFixtureDateHeader { justify-content: flex-start; padding-left: 15px; text-transform: capitalize; }

.individual-header {
    background: transparent !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    display: flex;
    padding: 10px 15px 0;
    font-size: 0.8rem;
    color: var(--text-muted, #a0a0a0);
    font-weight: bold;
}

.cpm-ParticipantFixtureDetailsSoccer {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: none !important;
    position: relative;
}

.cpm-ParticipantFixtureDetailsSoccer_LhsContainer {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.cpm-ParticipantFixtureDetailsSoccer_TeamsContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.cpm-ParticipantFixtureDetailsSoccer_TeamContainer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cpm-ParticipantFixtureDetailsSoccer_TeamLogoContainer img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cpm-ParticipantFixtureDetailsSoccer_Team {
    font-size: 0.9rem;
    color: var(--team-name-color, var(--text-main, #ffffff)) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    flex: 1;
}

.cpm-ParticipantFixtureDetailsSoccer_Details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
    color: var(--text-muted, #a0a0a0);
    min-width: 40px;
    margin-left: 10px;
}

.cpm-LiveTimer {
    color: var(--danger-color, #ef4444);
    font-weight: bold;
}

.cpm-Score {
    font-weight: bold;
    color: var(--text-main, #ffffff);
    font-size: 0.9rem;
    margin-left: auto;
}

/* Odds Row & Boxes */
.odds-row-container {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
}

.cpm-ParticipantOdds,
.cpm-ParticipantOdds.odd-box,
.cpm-ParticipantOdds.odd-box-distributed {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 8px !important;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 700;
    color: var(--odds-color, #ffffff) !important;
    font-size: 0.85rem;
    position: relative;
    background: var(--odd-bg, rgba(255,255,255,0.05)) !important;
    border-radius: 6px;
    border: 1px solid var(--divider-color, rgba(255,255,255,0.05)) !important;
    margin-bottom: 0;
    flex: 1;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.cpm-ParticipantOdds .cpm-ParticipantOdds_Odds {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: inline-block !important;
    color: inherit !important;
}

.cpm-ParticipantOdds .odd-label-btn {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    display: inline-block !important;
    color: var(--text-muted, #a0a0a0);
    margin-right: 0 !important;
}

.cpm-ParticipantOdds:hover {
    background: var(--primary-color, #10B981) !important;
    color: #000 !important;
}
.cpm-ParticipantOdds:hover * {
    color: #000 !important;
}
.cpm-ParticipantOdds.selected,
.cpm-ParticipantOdds.active {
    background: var(--primary-color, #10B981) !important;
    color: #000 !important;
}
.cpm-ParticipantOdds.selected *,
.cpm-ParticipantOdds.active * {
    color: #000 !important;
}

.cpm-ParticipantOdds:hover .odd-label-btn,
.cpm-ParticipantOdds.selected .odd-label-btn,
.cpm-ParticipantOdds.active .odd-label-btn {
    color: #000 !important;
}

.more-markets-box {
    height: auto;
    min-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    color: var(--odds-color, #ffffff);
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    padding-left: 10px;
}
.more-markets-box:hover {
    color: var(--text-main, #ffffff);
    text-decoration: underline;
}

/* Badge de Status / Horário / Placar do Card (Substitui Criar Aposta) */
.event__header__append {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 5;
}

.card-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 0 12px 0 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: -2px 2px 6px rgba(0,0,0,0.25);
    text-decoration: none;
    line-height: 1.2;
    transition: opacity 0.2s ease;
}
.card-status-badge:hover {
    opacity: 0.9;
}
.card-status-live {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
}
.live-dot-pulse {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: livePulseDot 1.4s infinite ease-in-out;
}
@keyframes livePulseDot {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; }
    100% { transform: scale(0.8); opacity: 1; }
}
.card-status-finished {
    background: rgba(148, 163, 184, 0.15) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
}
.card-status-scheduled {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.card-status-score {
    font-weight: 900;
    color: #ffffff !important;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    margin-left: 2px;
}

.league-header-row {
    display: flex;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
    padding: 5px 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }
    .cpm-MarketFixture { flex: 2; }
    .cpm-MarketOdds { min-width: 45px; }
    .cpm-ParticipantFixtureDetailsSoccer { padding: 0 10px; }
    .cpm-ParticipantFixtureDetailsSoccer_Team { font-size: 0.8rem; }
    .cpm-ParticipantOdds { font-size: 0.85rem; }
    .cpm-ParticipantFixtureDetailsSoccer_Details { display: none !important; }
}

@media (max-width: 480px) {
    .cpm-ParticipantFixtureDetailsSoccer_Details {
        display: none !important;
    }
}



/* ==========================================================================
   2. ESTILO 2: NOVO CARD GRANDE / DUELO (game-card-featured-large)
   Design Premium com Escudos Grandes, Placar/X Central e Odds Alinhadas
   ========================================================================== */
.game-card-featured-large {
    background: var(--card-color, #ffffff);
    border: 1px solid var(--card-border, #e2e8f0);
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card-featured-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    border-color: rgba(var(--primary-rgb, 255, 85, 0), 0.4);
}

/* Faixa do Topo */
.gc-featured-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    border-bottom: 1px solid var(--card-border, #e2e8f0);
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    font-weight: 700;
    flex-wrap: wrap;
    gap: 8px;
}

.gc-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gc-venue {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted, #64748b);
}

.gc-date {
    color: var(--text-main, #0f172a);
    font-weight: 800;
}

.gc-live-badge {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: pulseRed 2s infinite;
}

.gc-finished-badge {
    background: #f1f5f9;
    color: var(--text-muted, #64748b);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.gc-bet-builder-link {
    color: var(--primary-color, #ff5500);
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(var(--primary-rgb, 255, 85, 0), 0.06);
    transition: all 0.2s;
    text-decoration: none;
}

.gc-bet-builder-link:hover {
    background: var(--primary-color, #ff5500);
    color: #ffffff;
}

/* Área de Duelo / Escudos Grandes */
.gc-featured-match {
    padding: 22px 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb, 255, 85, 0), 0.03) 0%, transparent 70%);
}

.gc-team-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    min-width: 0;
    padding: 0 8px;
}

.gc-team-logo-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gc-featured-match:hover .gc-team-logo-wrap {
    transform: translateY(-4px) scale(1.08);
}

.gc-team-logo-lg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    transition: filter 0.25s ease, transform 0.25s ease;
}

.gc-featured-match:hover .gc-team-logo-lg {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.gc-team-name-lg {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    max-width: 140px;
    line-height: 1.25;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Placar ou VS no Centro */
.gc-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    min-width: 90px;
}

.gc-score-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-color, #ffffff);
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid var(--card-border, #e2e8f0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.gc-score-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-color, #ff5500);
}

.gc-score-sep {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-muted, #64748b);
}

.gc-score-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.gc-vs-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 900;
    color: var(--text-main, #0f172a);
    letter-spacing: 0.5px;
}

.gc-time-small {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-color, #ff5500);
    margin-top: 6px;
}

/* Área de Odds Alinhadas Embaixo */
.gc-featured-odds-row {
    padding: 14px 18px 18px;
    display: flex;
    gap: 10px;
    background: #f8fafc;
    border-top: 1px solid var(--card-border, #e2e8f0);
    align-items: stretch;
}

.gc-odd-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gc-odd-sublabel {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 2px;
}

.gc-odd-slot.center {
    text-align: center;
}

.gc-odd-slot.center .gc-odd-sublabel {
    text-align: center;
}

.gc-odd-slot .cpm-ParticipantOdds {
    width: 100%;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
}

.gc-more-slot {
    display: flex;
    align-items: flex-end;
}

.gc-more-slot .more-markets-box {
    height: 42px;
    min-width: 44px;
}

/* Responsividade Mobile para Card Grande */
@media (max-width: 600px) {
    .gc-team-logo-wrap {
        width: 48px;
        height: 48px;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .gc-team-name-lg {
        font-size: 0.85rem;
        max-width: 95px;
    }
    .gc-score-num {
        font-size: 1.3rem;
    }
    .gc-featured-odds-row {
        gap: 6px;
        padding: 10px 12px 14px;
    }
    .gc-odd-sublabel {
        font-size: 0.62rem;
    }
    .gc-odd-slot .cpm-ParticipantOdds {
        padding: 4px 6px !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
    }
    .gc-more-slot .more-markets-box {
        height: 38px;
        padding: 6px 8px;
    }
}
