/* ================================
   FONTE / CONTAINER GERAL
================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

.pgstats-slots-wrapper {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 10px;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
}

/* Títulos */
.pgstats-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 0 14px;
    text-align: left;
    color: #f5f5f5;
}

/* ================================
   GRID DOS CARDS
================================ */
.pgstats-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* ================================
   CARD BASE
================================ */
.pgstats-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    width: 230px;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;

    background: radial-gradient(circle at top left, #1f2937 0%, #020617 45%, #000 100%);
    color: #fff;

    box-shadow: 0 14px 30px rgba(0,0,0,0.6);
    transform: translateY(0);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, filter 0.18s ease-out;
}

/* Hover */
.pgstats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.8);
    filter: brightness(1.03);
}

/* ================================
   TEMAS DE COR
================================ */
.pgstats-theme-purple {
    background: radial-gradient(circle at 0% 0%, #7c3aed 0%, #4c1d95 40%, #020617 100%) !important;
}

.pgstats-theme-blue {
    background: radial-gradient(circle at 0% 0%, #0ea5e9 0%, #1d4ed8 40%, #020617 100%) !important;
}

.pgstats-theme-green {
    background: radial-gradient(circle at 0% 0%, #22c55e 0%, #16a34a 40%, #052e16 100%) !important;
}

.pgstats-theme-red {
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 95, 95, 0.82) 0%, rgba(0,0,0,0) 60%),
        linear-gradient(180deg, #e11d48 0%, #be123c 28%, #9f1239 55%, #4c0519 100%) !important;
}

/* ================================
   IMAGENS
================================ */
.pgstats-card-cover {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pgstats-card-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.pgstats-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================
   TOP BADGE
================================ */
.pgstats-card[data-top]::before {
    content: "Top " attr(data-top);
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;

    padding: 3px 8px;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;

    background: linear-gradient(135deg, #facc15 0%, #f97316 50%, #b45309 100%);
    color: #111827;
    box-shadow: 0 0 0 1px rgba(120,53,15,0.6), 0 4px 10px rgba(0,0,0,0.7);
}

/* ================================
   HEADER INTERNO
================================ */
.pgstats-card-inner {
    padding: 8px 10px 6px;
}

.pgstats-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pgstats-platform-title {
    margin-left: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    opacity: 0.95;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ================================
   RTP BARRAS
================================ */
.pgstats-rtp-row {
    margin-bottom: 6px;
}

.pgstats-rtp-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 2px;
    color: #e5e7eb;
}

.pgstats-rtp-bar {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    overflow: hidden;
}

.pgstats-rtp-bar-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.25s ease-out;
}

/* Cores das barras */
.pgstats-bar-green {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.pgstats-bar-yellow {
    background: linear-gradient(90deg, #facc15 0%, #eab308 100%);
}

.pgstats-bar-red {
    background: linear-gradient(90deg, #fb7185 0%, #ef4444 100%);
}

/* Separador do RTP por minuto (4ª barra) */
.pgstats-rtp-row-media {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ================================
   BOTÃO JOGAR AGORA
================================ */
.pgstats-play-btn {
    display: block;
    margin: 8px 10px 10px;
    padding: 8px 10px;
    text-align: center;
    text-decoration: none;

    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;

    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 40%, #15803d 100%);

    color: #f9fafb;
    box-shadow:
        0 0 0 1px rgba(16,185,129,0.35),
        0 8px 20px rgba(16,185,129,0.45);

    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, filter 0.15s ease-out;
}

.pgstats-play-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(22,163,74,0.4),
        0 10px 26px rgba(16,185,129,0.6);
}

/* ================================
   CAIXA DE STATUS (Oportunidades)
================================ */
.pgstats-status-box {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,0.55);
    font-size: 11px;
    line-height: 1.4;
}

.pgstats-status-line {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pgstats-status-icon {
    flex-shrink: 0;
    font-size: 12px;
}

/* ================================
   RESPONSIVIDADE
================================ */

/* Mobile – 2 colunas */
@media (max-width: 480px) {
    .pgstats-card {
        width: calc(50% - 12px);
    }
    .pgstats-section-title {
        text-align: center;
    }
}

/* Tablet – 3 colunas */
@media (min-width: 481px) and (max-width: 768px) {
    .pgstats-card {
        width: calc(33.333% - 14px);
    }
}

/* Desktop fixo */
@media (min-width: 769px) {
    .pgstats-card {
        width: 230px;
    }
}
