/* =========================================================
 * Pastor Prováveis — Widgets de API (mercado, partidas,
 * clubes, mais escalados, mais indicados) v1.1.0
 * ======================================================= */

/* ── Barra de status do mercado ───────────────────────── */
.pp-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #1a2035;
    border-radius: 10px;
    padding: 10px 16px;
    margin: 0 0 16px;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
}
.pp-status-bar__left,
.pp-status-bar__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pp-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
}
.pp-status-chip:hover { background: rgba(255,255,255,.14); color: #fff; }
.pp-status-chip__label { color: rgba(255,255,255,.6); font-size: 12px; }

/* Taxa de acertos */
.pp-status-chip--taxa strong { color: #f39c12; font-size: 15px; }

/* WhatsApp */
.pp-status-chip--whatsapp { color: #25d366; }
.pp-status-chip--whatsapp:hover { background: rgba(37,211,102,.15); }

/* Mercado */
.pp-status-chip--aberto  .pp-dot { background: #27ae60; }
.pp-status-chip--fechado .pp-dot { background: #e74c3c; }
.pp-status-chip--manutencao .pp-dot { background: #f39c12; }

.pp-mercado-label { font-weight: 700; font-size: 13px; }
.pp-countdown { color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }

/* Online */
.pp-status-chip--online .pp-online-count { font-weight: 800; font-size: 15px; color: #55efc4; }

/* Dots */
.pp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    background: #999;
}
.pp-dot--green { background: #27ae60; }
.pp-dot--pulse {
    background: #27ae60;
    animation: pp-pulse 1.8s ease-in-out infinite;
}
@keyframes pp-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(39,174,96,.5); }
    50%      { box-shadow: 0 0 0 5px rgba(39,174,96,0); }
}

/* ── Grade de partidas ────────────────────────────────── */
.pp-partidas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    margin: 0 0 16px;
}

.pp-partida {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    background: #1a2035;
    border-radius: 10px;
    padding: 12px 14px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.pp-partida--ao-vivo {
    border: 1px solid rgba(231,76,60,.4);
}
.pp-ao-vivo-badge {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    letter-spacing: .05em;
    white-space: nowrap;
    animation: pp-blink 1s step-end infinite;
}
@keyframes pp-blink { 0%,100%{opacity:1} 50%{opacity:.5} }

.pp-partida__time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.pp-partida__time--visitante { /* same */ }
.pp-partida__escudo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.pp-partida__nome {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    max-width: 90px;
    line-height: 1.2;
}

.pp-partida__centro {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.pp-partida__placar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}
.pp-partida__x { color: rgba(255,255,255,.4); font-size: 16px; }
.pp-partida__vs {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255,255,255,.5);
    letter-spacing: .1em;
}
.pp-partida__data {
    font-size: 11px;
    color: rgba(255,255,255,.6);
    font-weight: 600;
}
.pp-partida__local {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    max-width: 100px;
    text-align: center;
}

/* ── Grade de clubes ──────────────────────────────────── */
.pp-clubes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
}

.pp-clube {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px;
    transition: background .15s, transform .15s;
    background: rgba(0,0,0,.03);
}
.pp-clube:hover {
    background: rgba(0,0,0,.08);
    transform: scale(1.08);
}
.pp-clube.is-active {
    background: rgba(26,44,82,.1);
    outline: 2px solid #1a2d5a;
}

.pp-clube__escudo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.2));
    transition: filter .15s;
}
.pp-clube:hover .pp-clube__escudo {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.pp-clube__escudo--placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #1a2d5a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* ── Ranking (mais escalados / mais indicados) ────────── */
.pp-mais-escalados,
.pp-mais-indicados {
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    margin: 0 0 20px;
}

.pp-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pp-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 10px 14px;
    transition: box-shadow .2s, transform .15s;
    position: relative;
}
.pp-rank-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    transform: translateX(3px);
}

/* Top 3 */
.pp-rank--gold   { border-left: 4px solid #f39c12; background: #fffbf0; }
.pp-rank--silver { border-left: 4px solid #9b9b9b; }
.pp-rank--bronze { border-left: 4px solid #c84b31; }

.pp-rank-num {
    font-size: 13px;
    font-weight: 800;
    color: #999;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}
.pp-rank--gold   .pp-rank-num { color: #f39c12; font-size: 16px; }
.pp-rank--silver .pp-rank-num { color: #9b9b9b; }
.pp-rank--bronze .pp-rank-num { color: #c84b31; }

.pp-rank-foto {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.pp-rank-foto__img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}
.pp-rank-foto__placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a2d5a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    border: 2px solid #e0e0e0;
}
.pp-rank-foto__clube {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.pp-rank-info {
    flex: 1;
    min-width: 0;
}
.pp-rank-nome {
    display: block;
    font-weight: 800;
    font-size: 14px;
    color: #1a2035;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp-rank-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.pp-rank-pos {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    letter-spacing: .05em;
}
.pp-rank-pos--gol { background: #fff3cd; color: #856404; }
.pp-rank-pos--zag { background: #d1ecf1; color: #0c5460; }
.pp-rank-pos--lat { background: #d4edda; color: #155724; }
.pp-rank-pos--mei { background: #cce5ff; color: #004085; }
.pp-rank-pos--ata { background: #f8d7da; color: #721c24; }

.pp-rank-clube {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-rank-stats {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.pp-rank-stat {
    text-align: center;
    min-width: 44px;
}
.pp-rank-stat__val {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #1a2035;
    line-height: 1;
}
.pp-rank-stat__val--percent { color: #e74c3c; }
.pp-rank-stat__val--preco   { color: #27ae60; }
.pp-rank-stat__label {
    display: block;
    font-size: 10px;
    color: #aaa;
    margin-top: 1px;
}

/* ── Seção de título ──────────────────────────────────── */
.pp-section-header {
    margin-bottom: 14px;
}
.pp-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a2035;
    margin: 0;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
}

/* ── Responsivo ───────────────────────────────────────── */
@media (max-width: 600px) {
    .pp-status-bar { flex-direction: column; align-items: flex-start; }
    .pp-partidas-grid { grid-template-columns: 1fr; }
    .pp-rank-stats { gap: 6px; }
    .pp-rank-stat { min-width: 36px; }
    .pp-rank-stat__val { font-size: 12px; }
}
