/* Container Principal */
.sorteios-wp-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Inter', 'Outfit', 'Segoe UI', sans-serif;
    padding: 20px;
}

/* --- Bloco 1: PRÓXIMO SORTEIO (Hero) --- */
.sorteios-hero-card {
    display: flex;
    background: linear-gradient(135deg, #207DDD 0%, #3B9EF1 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(32, 125, 221, 0.25);
    margin-bottom: 40px;
    position: relative;
    color: #ffffff;
}

.sorteios-hero-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.sorteio-badge {
    background: #FDAB2D;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(253, 171, 45, 0.3);
}

.sorteio-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.2;
    color: #ffffff !important;
}

.sorteio-premio-box {
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid #4EE9F4;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.premio-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.premio-name {
    font-size: 22px;
    font-weight: 700;
    color: #4EE9F4 !important;
}

.sorteio-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
}

.sorteio-date svg {
    color: #4EE9F4;
}

.sorteios-hero-image {
    width: 300px;
    background: linear-gradient(135deg, #33BEDF 0%, #4EE9F4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sorteios-hero-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.gift-icon {
    font-size: 100px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@media (max-width: 768px) {
    .sorteios-hero-card {
        flex-direction: column-reverse;
    }
    .sorteios-hero-image {
        width: 100%;
        height: 200px;
    }
    .sorteio-title {
        font-size: 26px;
    }
}

/* --- Bloco 2: ÚLTIMO SORTEIO --- */
.section-title {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    display: block;
    width: 8px;
    height: 24px;
    background: #fca830;
    border-radius: 4px;
}

.resultado-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 50px;
    display: flex;
    gap: 40px;
}

.ganhador-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.avatar-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.15);
}

.ganhador-details {
    flex: 1;
}

.ganhador-nome {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.ganhador-codigo {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 12px;
}

.ganhador-codigo strong {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    color: #334155;
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 2px;
}

.ganhador-premio {
    display: inline-block;
    background: rgba(0, 86, 179, 0.08);
    color: #0056b3;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.transparencia-box {
    flex: 1;
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 1px dashed #cbd5e1;
}

.transparencia-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 15px;
}

.transparencia-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.transparencia-list li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding-bottom: 10px;
}

.transparencia-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.transparencia-list strong {
    color: #334155;
}

@media (max-width: 768px) {
    .resultado-card {
        flex-direction: column;
        gap: 24px;
    }
}

/* --- Bloco 3: HISTÓRICO --- */
.historico-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.historico-item {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.historico-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}

.hist-date {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hist-premio {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.hist-ganhador {
    font-size: 14px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hist-codigo {
    font-family: monospace;
    color: #94a3b8;
    font-size: 13px;
}
