/* ============================================
   PROMO PUBLIC PAGES - CSS COMPARTILHADO
   ============================================
   Estilos reutilizados em todas as páginas
   públicas de promoção:
   - como-funciona.html
   - premios.html
   - regulamento.html
   - consultar-bilhete.html
   - participantes.html
   - verificar-sorteio.html
   ============================================ */

/* ========================================
   VARIÁVEIS CSS
   ======================================== */
:root {
    /* Cores da Promoção */
    --promo-primary: #667eea;
    --promo-secondary: #764ba2;
    --promo-accent: #f093fb;

    /* Cores de Status */
    --promo-success: #10b981;
    --promo-warning: #fbbf24;
    --promo-danger: #ef4444;
    --promo-info: #3b82f6;

    /* Cores de Texto */
    --promo-text-primary: #1e293b;
    --promo-text-secondary: #64748b;
    --promo-text-muted: #94a3b8;
    --promo-text-light: #ffffff;

    /* Cores de Background */
    --promo-bg-card: #ffffff;
    --promo-bg-light: #f8fafc;

    /* Cores de Borda */
    --promo-border-light: #e2e8f0;
    --promo-border-color: #cbd5e1;
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(252, 211, 77, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(252, 211, 77, 0.6);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    color: white;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
}

.page-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* ========================================
   PAGE CARD / CARD CONTAINER
   ======================================== */
.page-card {
    background: var(--promo-bg-light);
    border-radius: 20px;
    padding: 50px;
    max-width: 900px;
    margin: 10px auto 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.card-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   STATS CARDS
   ======================================== */
.stats-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    padding: 25px 35px;
    text-align: center;
    min-width: 160px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--promo-primary), var(--promo-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--promo-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--promo-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--promo-primary), var(--promo-secondary));
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 30px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.cta-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-description {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #1e293b;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(252, 211, 77, 0.4);
    animation: glow 2s infinite;
}

.btn-cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(252, 211, 77, 0.5);
    color: #1e293b;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
}

.cta-urgency {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-urgency i {
    animation: blink 1.5s infinite;
}

/* ========================================
   BOTÕES COMUNS
   ======================================== */
.btn-back {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-try-again {
    background: linear-gradient(135deg, var(--promo-primary), var(--promo-secondary));
    color: white;
    padding: 14px 35px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-try-again:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ========================================
   BADGES
   ======================================== */
.badge-ganhador {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    animation: pulse-gold 2s infinite;
}

/* Efeito primeiro prêmio */
.primeiro-premio {
    position: relative;
    overflow: hidden;
    border-color: #f59e0b !important;
}

.primeiro-premio::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(251, 191, 36, 0.1) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
    pointer-events: none;
}

.pulse-gold {
    animation: pulse-gold 2s infinite;
}

/* ========================================
   ALERTS CUSTOMIZADOS
   ======================================== */
.alert-tip {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #10b981;
}

.alert-info-custom {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #3b82f6;
}

.alert-warning-custom {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #f59e0b;
}

/* ========================================
   RESPONSIVE - TABLET (768px)
   ======================================== */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .page-card {
        padding: 30px 20px;
        margin: 20px 10px;
        border-radius: 15px;
    }

    .card-container {
        padding: 25px;
    }

    .stats-cards {
        flex-direction: column;
        gap: 15px;
    }

    .stat-card {
        padding: 20px 25px;
        min-width: auto;
        width: 100%;
    }

    .cta-section {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 22px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .btn-cta-primary {
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (576px)
   ======================================== */
@media (max-width: 576px) {
    .page-header-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .page-card {
        padding: 20px 15px;
        margin: 10px;
        border-radius: 15px;
    }

    .card-container {
        padding: 20px 15px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .stat-value {
        font-size: 26px;
    }

    .stat-label {
        font-size: 11px;
    }

    .cta-section {
        padding: 25px 15px;
    }

    .cta-title {
        font-size: 20px;
    }

    .cta-description,
    .cta-subtitle {
        font-size: 14px;
    }

    .btn-cta-primary {
        padding: 12px 25px;
        font-size: 14px;
    }

    .btn-cta-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
}
