/* ============================================================
   🎰 CARROSSEL PGSOFT V7.1 — HORIZONTAL COMPACT
   Paleta: Preto/Cinza + Amarelo #FFC300
   2 jogos lado a lado · RTP + MAX WIN · Botão Jogar Agora
   ============================================================ */

/* ── WRAPPER ─────────────────────────────────────────────── */
.pg-carousel-wrapper {
    position: relative;
    background: #141414;
    border: 1px solid rgba(255,195,0,.18);
    border-radius: 16px;
    padding-bottom: 14px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
}

/* ── HEADER COMPACTO ─────────────────────────────────────── */
.pgc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 9px;
    border-bottom: 1px solid rgba(255,195,0,.12);
    background: linear-gradient(90deg, rgba(255,195,0,.06) 0%, transparent 70%);
}
.pgc-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    font-weight: 800;
    color: #FFC300;
    letter-spacing: .6px;
    text-transform: uppercase;
}
.pgc-title i { color: #FFC300; font-size: .82rem; }
.pgc-live-dot {
    width: 7px; height: 7px;
    background: #FFC300;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255,195,0,.7);
    animation: pgcPulse 1.5s ease-in-out infinite;
    display: inline-block;
}
@keyframes pgcPulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.4; transform:scale(.6); }
}
.pgc-date { font-size: .68rem; color: rgba(255,255,255,.35); }

/* ── TRACK ───────────────────────────────────────────────── */
.pgc-track-outer {
    overflow: hidden;
    padding: 10px 0 6px;
    position: relative;
}
.pgc-track {
    display: flex;
    transition: transform .42s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.pgc-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 48px;
    box-sizing: border-box;
}

/* ── GRID HORIZONTAL: 2 cards em linha ───────────────────── */
.pgc-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: start;
}

/* ── CARD ────────────────────────────────────────────────── */
.pgc-slot-mini-card {
    background: #1E1E1E;
    border: 1px solid #3C3C3C;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    cursor: pointer;
}
.pgc-slot-mini-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,195,0,.5);
    box-shadow: 0 8px 24px rgba(255,195,0,.18);
}

/* ── IMAGEM PORTRAIT (proporção ~3:4) ────────────────────── */
.pgc-slot-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0A0A0A;
    flex-shrink: 0;
}
.pgc-slot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .35s ease;
}
.pgc-slot-mini-card:hover .pgc-slot-img { transform: scale(1.06); }

/* Badge HOT */
.pgc-hot-badge {
    position: absolute;
    top: 6px; left: 6px;
    background: linear-gradient(135deg, #dc2626, #f97316);
    color: #fff;
    font-size: .58rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 20px;
    display: flex; align-items: center; gap: 3px;
    box-shadow: 0 2px 8px rgba(239,68,68,.5);
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: .4px;
    animation: hotPulse 2s ease-in-out infinite;
}
@keyframes hotPulse {
    0%,100% { box-shadow: 0 2px 8px rgba(239,68,68,.5); }
    50%      { box-shadow: 0 2px 16px rgba(249,115,22,.8); }
}

/* RTP badge no topo da imagem (canto superior direito) */
.pgc-slot-rtp-overlay {
    position: absolute;
    top: 6px; right: 6px;
    font-size: .72rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 3;
    letter-spacing: .2px;
    white-space: nowrap;
}
.pgc-slot-rtp-overlay.rtp-top   { background: rgba(255,195,0,.90);  color: #000;    border: 1px solid rgba(255,195,0,.7); }
.pgc-slot-rtp-overlay.rtp-verde { background: rgba(34,197,94,.85);  color: #fff;    border: 1px solid rgba(34,197,94,.5); }

/* ── CORPO DO CARD ───────────────────────────────────────── */
.pgc-slot-body {
    padding: 7px 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Nome do jogo */
.pgc-slot-nome-mini {
    font-size: .76rem;
    font-weight: 700;
    color: #F0F0F0;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    min-height: 2em;
}

/* ── LINHA DE STATS: RTP | MAX WIN ───────────────────────── */
.pgc-stats-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,195,0,.1);
    border-radius: 8px;
    overflow: hidden;
}
.pgc-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 4px 3px;
    gap: 1px;
}
.pgc-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,195,0,.15);
    flex-shrink: 0;
}
.pgc-stat-val {
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: .1px;
    line-height: 1;
}
/* Cores RTP badge */
.pgc-stat-val.rtp-top   { color: #FFC300; }
.pgc-stat-val.rtp-verde { color: #22C55E; }

/* Max Win em dourado */
.pgc-stat-val.pgc-maxwin { color: #FFC300; }

.pgc-stat-lbl {
    font-size: .52rem;
    color: rgba(255,255,255,.35);
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1;
}

/* Vol badge */
.pgc-vol-mini {
    display: inline-block;
    font-size: .56rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .3px;
    align-self: flex-start;
}
.vol-alta  { background: rgba(239,68,68,.12);  color: #f87171; border: 1px solid rgba(239,68,68,.22); }
.vol-media { background: rgba(255,195,0,.12);  color: #FFC300; border: 1px solid rgba(255,195,0,.22); }
.vol-baixa { background: rgba(34,197,94,.12);  color: #4ade80; border: 1px solid rgba(34,197,94,.22); }

/* ── BOTÃO JOGAR AGORA ───────────────────────────────────── */
.pgc-btn-jogar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 4px 8px 8px;
    padding: 7px 6px;
    background: #FFC300;
    color: #000000 !important;
    font-size: .7rem;
    font-weight: 800;
    border-radius: 9px;
    text-decoration: none !important;
    letter-spacing: .3px;
    text-transform: uppercase;
    transition: all .2s ease;
    box-shadow: 0 3px 12px rgba(255,195,0,.35);
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
.pgc-btn-jogar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform .4s ease;
}
.pgc-btn-jogar:hover::after { transform: translateX(100%); }
.pgc-btn-jogar:hover {
    background: #E6B000;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(255,195,0,.55);
    color: #000000 !important;
}
.pgc-btn-jogar:active {
    background: #CC9E00;
    transform: translateY(0);
}
.pgc-btn-jogar i { font-size: .68rem; }

/* ── TÍTULO CLICÁVEL ─────────────────────────────────────── */
.pgc-title-link {
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 3px 8px 3px 4px;
    transition: background .2s ease, color .2s ease;
    border: 1px solid transparent;
}
.pgc-title-link:hover {
    background: rgba(255,195,0,.1);
    border-color: rgba(255,195,0,.3);
    color: #FFD740;
}
.pgc-title-ext {
    font-size: .6rem;
    opacity: .55;
    margin-left: 2px;
    transition: opacity .2s ease;
}
.pgc-title-link:hover .pgc-title-ext {
    opacity: 1;
}

/* ── DOTS ────────────────────────────────────────────────── */
.pgc-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}
.pgc-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    cursor: pointer;
    border: none; padding: 0;
    transition: all .25s;
}
.pgc-dot.active {
    background: #FFC300;
    width: 18px;
    border-radius: 3px;
    box-shadow: 0 0 7px rgba(255,195,0,.6);
}

/* ── SETAS ───────────────────────────────────────────────── */
.pgc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,10,10,.85);
    border: 1px solid rgba(255,195,0,.22);
    color: rgba(255,195,0,.8);
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .76rem;
    transition: all .2s;
    z-index: 10;
}
.pgc-arrow:hover {
    background: rgba(255,195,0,.15);
    color: #FFC300;
    border-color: #FFC300;
    box-shadow: 0 0 12px rgba(255,195,0,.4);
}
.pgc-prev { left: 6px; }
.pgc-next { right: 6px; }

/* ── COUNTER ─────────────────────────────────────────────── */
.pgc-counter {
    position: absolute;
    top: 52px;
    right: 12px;
    font-size: .6rem;
    color: rgba(255,255,255,.35);
    background: rgba(0,0,0,.5);
    padding: 2px 8px;
    border-radius: 8px;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.06);
    z-index: 5;
}

/* ── BARRA DE PROGRESSO ──────────────────────────────────── */
.pgc-progress-bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    background: linear-gradient(90deg, #CC9E00, #FFC300, #F0D200);
    background-size: 200% 100%;
    animation: pgcBarShimmer 2s linear infinite;
    width: 0%;
    transition: width .1s linear;
    z-index: 5;
}
@keyframes pgcBarShimmer {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ── LOADING ─────────────────────────────────────────────── */
.pgc-loading-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 160px;
    color: rgba(255,255,255,.35);
    font-size: .78rem;
}
.pgc-loading-spinner {
    width: 28px; height: 28px;
    border: 2px solid rgba(255,195,0,.2);
    border-top-color: #FFC300;
    border-radius: 50%;
    animation: pgcSpin 1s linear infinite;
}
@keyframes pgcSpin { to { transform: rotate(360deg); } }

/* ── RESPONSIVO ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .pgc-slide { padding: 0 36px; }
    .pgc-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pgc-slot-nome-mini { font-size: .7rem; white-space: normal; }
    .pgc-stat-val { font-size: .78rem; }
    .pgc-stat-lbl { font-size: .50rem; }
    .pgc-btn-jogar { font-size: .64rem; padding: 6px 4px; margin: 4px 6px 6px; }
    .pgc-slot-body { padding: 5px 5px 3px; }
    .pgc-arrow { width: 26px; height: 26px; font-size: .7rem; }
    .pgc-prev { left: 2px; }
    .pgc-next { right: 2px; }
    .pgc-vol-mini { display: none; }
}
@media (max-width: 420px) {
    .pgc-slide { padding: 0 28px; }
    .pgc-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .pgc-slot-nome-mini { font-size: .66rem; }
    .pgc-stat-val { font-size: .7rem; }
    .pgc-stat-lbl { font-size: .46rem; }
    .pgc-slot-body { padding: 4px 4px 2px; }
    .pgc-btn-jogar i + span { display: none; }
    .pgc-btn-jogar { padding: 7px; }
}
