/**
 * Encore Play - Theme CSS
 * Identidade visual oficial da Encore
 * 
 * Este arquivo contém variáveis e overrides para padronizar
 * todo o sistema com a paleta Encore.
 */

/* ============================================================
   VARIÁVEIS CSS - PALETA ENCORE (TEMA CLARO)
   ============================================================ */
:root {
    /* Cores principais */
    --encore-primary: #E50914;
    --encore-primary-soft: #F03A3A;
    --encore-primary-dark: #B30710;
    
    /* Fundos - TEMA CLARO */
    --encore-bg: #F6F6F6;
    --encore-bg-alt: #EFEFEF;
    --encore-surface: #FFFFFF;
    --encore-card: #FFFFFF;
    --encore-card-hover: #FAFAFA;
    --encore-border: #E5E5E5;
    --encore-border-dark: #D0D0D0;
    
    /* Textos - ESCUROS */
    --encore-text: #1A1A1A;
    --encore-text-secondary: #333333;
    --encore-muted: #6B6B6B;
    --encore-muted-light: #999999;
    
    /* Status */
    --encore-success: #16A34A;
    --encore-success-soft: #22C55E;
    --encore-warning: #CA8A04;
    --encore-warning-soft: #EAB308;
    --encore-danger: #DC2626;
    --encore-danger-soft: #EF4444;
    --encore-info: #2563EB;
    --encore-info-soft: #3B82F6;
    
    /* Gradientes */
    --encore-gradient: linear-gradient(135deg, var(--encore-primary), var(--encore-primary-soft));
    --encore-gradient-dark: linear-gradient(135deg, var(--encore-primary-dark), var(--encore-primary));
    
    /* Sombras - SUAVES */
    --encore-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --encore-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    
    /* Bordas */
    --encore-radius: 8px;
    --encore-radius-lg: 12px;
    --encore-radius-sm: 4px;
    
    /* Transições */
    --encore-transition: all 0.2s ease;
}

/* ============================================================
   RESET E BASE - TEMA CLARO
   ============================================================ */
body {
    background-color: var(--encore-bg) !important;
    color: var(--encore-text) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    color: var(--encore-primary);
    transition: var(--encore-transition);
}

a:hover {
    color: var(--encore-primary-dark);
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn,
button[type="submit"],
input[type="submit"] {
    background: var(--encore-gradient) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: var(--encore-radius) !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: var(--encore-transition) !important;
    text-decoration: none !important;
    display: inline-block;
    box-shadow: var(--encore-shadow);
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--encore-gradient-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--encore-shadow-lg) !important;
}

.btn:active,
button[type="submit"]:active {
    transform: translateY(0);
}

.btn-secondary,
.btn.btn-secondary {
    background: var(--encore-surface) !important;
    border: 1px solid var(--encore-border) !important;
    color: var(--encore-text) !important;
}

.btn-secondary:hover {
    background: var(--encore-bg) !important;
    border-color: var(--encore-border-dark) !important;
}

/* ============================================================
   CARDS - TEMA CLARO
   ============================================================ */
.card,
.info-box,
.plan-option {
    background: var(--encore-card) !important;
    border: 1px solid var(--encore-border) !important;
    border-radius: var(--encore-radius-lg) !important;
    padding: 20px !important;
    margin-bottom: 20px;
    box-shadow: var(--encore-shadow);
}

.card h1,
.card h2,
.card h3 {
    color: var(--encore-text) !important;
}

.card p,
.card span {
    color: var(--encore-text-secondary) !important;
}

/* ============================================================
   FORMULÁRIOS - TEMA CLARO (CONTRASTE OTIMIZADO)
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="datetime-local"],
select,
textarea {
    background: #FFFFFF !important;
    border: 2px solid #D0D0D0 !important;
    color: #1A1A1A !important;
    border-radius: var(--encore-radius) !important;
    padding: 12px !important;
    transition: var(--encore-transition);
    font-size: 0.95rem;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #B0B0B0 !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--encore-primary) !important;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15) !important;
    background: #FFFFFF !important;
}

input::placeholder,
textarea::placeholder {
    color: #999999 !important;
}

label {
    color: #1A1A1A !important;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

/* ============================================================
   ALERTAS E STATUS - TEMA CLARO
   ============================================================ */
.alert,
.alert-success,
.alert-error,
.alert-warning,
.alert-info {
    padding: 15px 20px !important;
    border-radius: var(--encore-radius) !important;
    margin-bottom: 20px;
    border: 1px solid transparent !important;
}

.alert-success {
    background: #ECFDF5 !important;
    border-color: #A7F3D0 !important;
    color: #065F46 !important;
}

.alert-error {
    background: #FEF2F2 !important;
    border-color: #FECACA !important;
    color: #991B1B !important;
}

.alert-warning {
    background: #FFFBEB !important;
    border-color: #FDE68A !important;
    color: #92400E !important;
}

.alert-info {
    background: #EFF6FF !important;
    border-color: #BFDBFE !important;
    color: #1E40AF !important;
}

/* ============================================================
   INFO BOX (Resumo de dados) - TEMA CLARO
   ============================================================ */
.info-box {
    background: #FEF7F7 !important;
    border: 1px solid #FECACA !important;
    border-left: 4px solid var(--encore-primary) !important;
}

.info-box strong {
    color: var(--encore-text) !important;
}

/* ============================================================
   PLANOS / OPÇÕES DE SELEÇÃO - TEMA CLARO
   ============================================================ */
.plan-option {
    cursor: pointer;
    transition: var(--encore-transition);
    position: relative;
    background: var(--encore-surface) !important;
}

.plan-option:hover {
    border-color: var(--encore-primary) !important;
    background: #FEF7F7 !important;
}

.plan-option input[type="radio"]:checked + .plan-name,
.plan-option:has(input[type="radio"]:checked) {
    border-color: var(--encore-primary) !important;
    background: #FEF7F7 !important;
}

.plan-name {
    color: var(--encore-text) !important;
    font-weight: 600;
}

.plan-price {
    color: var(--encore-primary) !important;
    font-weight: 700;
    font-size: 1.1em;
}

/* ============================================================
   QR CODE / PIX
   ============================================================ */
.qr-container {
    text-align: center;
    padding: 30px;
    background: var(--encore-bg) !important;
    border-radius: var(--encore-radius-lg);
    margin: 20px 0;
}

.qr-code {
    max-width: 250px;
    border-radius: var(--encore-radius);
    margin: 20px auto;
    display: block;
}

.pix-code {
    background: var(--encore-card) !important;
    padding: 15px;
    border-radius: var(--encore-radius);
    font-family: monospace;
    font-size: 0.85em;
    word-break: break-all;
    color: var(--encore-muted) !important;
    margin: 15px 0;
    border: 1px solid var(--encore-border);
}

.copy-btn {
    background: var(--encore-gradient) !important;
    margin-top: 10px;
}

/* ============================================================
   LOADING / SPINNER
   ============================================================ */
.loading {
    text-align: center;
    padding: 30px;
    color: var(--encore-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--encore-border);
    border-top-color: var(--encore-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   NAVBAR / HEADER
   ============================================================ */
.navbar,
header {
    background: var(--encore-card) !important;
    border-bottom: 1px solid var(--encore-border) !important;
}

.navbar .logo,
header .logo {
    color: var(--encore-primary) !important;
    font-weight: 700;
}

.navbar nav a,
header nav a {
    color: var(--encore-muted) !important;
    transition: var(--encore-transition);
}

.navbar nav a:hover,
header nav a:hover {
    color: var(--encore-text) !important;
}

.navbar nav a.active {
    color: var(--encore-primary) !important;
}

/* ============================================================
   TABELAS
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: var(--encore-bg) !important;
    color: var(--encore-muted) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75em;
    padding: 12px !important;
    text-align: left;
    border-bottom: 1px solid var(--encore-border) !important;
}

table td {
    padding: 12px !important;
    border-bottom: 1px solid var(--encore-border) !important;
    color: var(--encore-text-secondary) !important;
}

table tr:hover td {
    background: var(--encore-card-hover) !important;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--encore-radius-sm);
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-ativo,
.badge-success {
    background: rgba(34, 197, 94, 0.2) !important;
    color: var(--encore-success) !important;
}

.badge-inativo,
.badge-error {
    background: rgba(239, 68, 68, 0.2) !important;
    color: var(--encore-danger) !important;
}

.badge-warning {
    background: rgba(250, 204, 21, 0.2) !important;
    color: var(--encore-warning) !important;
}

/* ============================================================
   CUPOM SECTION (Painel de Renovação)
   ============================================================ */
.cupom-section {
    background: var(--encore-card) !important;
    border: 1px dashed var(--encore-border) !important;
    border-radius: var(--encore-radius) !important;
}

/* ============================================================
   CONTAINER E LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 768px) {
    .card {
        padding: 15px !important;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .qr-code {
        max-width: 200px;
    }
}

/* ============================================================
   SUCESSO PAGE - Celebração
   ============================================================ */
.success-icon {
    font-size: 4em;
    color: var(--encore-success);
    margin-bottom: 20px;
}

/* ============================================================
   LINKS E TEXTOS ESPECIAIS
   ============================================================ */
.text-primary {
    color: var(--encore-primary) !important;
}

.text-success {
    color: var(--encore-success) !important;
}

.text-muted {
    color: var(--encore-muted) !important;
}

.text-warning {
    color: var(--encore-warning) !important;
}

.text-danger {
    color: var(--encore-danger) !important;
}

/* ============================================================
   BADGES - TEMA CLARO (refinados)
   ============================================================ */
.badge-ativo,
.badge-success {
    background: #ECFDF5 !important;
    color: #065F46 !important;
}

.badge-inativo,
.badge-error {
    background: #FEF2F2 !important;
    color: #991B1B !important;
}

.badge-warning {
    background: #FFFBEB !important;
    color: #92400E !important;
}

.badge-info {
    background: #EFF6FF !important;
    color: #1E40AF !important;
}
