/**
 * História da Área 51 - Estilos da página
 * Estilos para a página de história da Área 51 do CaraCore
 * 
 * @author CaraCore Team  
 * @version 1.0
 * @date 2025-11-13
 */

/* ==========================================
   VARIÁVEIS CSS E RESET BÁSICO
   ========================================== */

:root {
    --brand-dark: #0f172a;
    --brand-light: #f8fafc;
    --brand-primary: #2563eb;
    --brand-secondary: #4f46e5;
    --brand-accent: #38bdf8;
    --brand-soft: rgba(37, 99, 235, 0.12);
    --text-dark: #1e293b;
    --text-muted: #475569;
}

*, *::before, *::after { 
    box-sizing: border-box; 
}

html, body { 
    margin: 0; 
    padding: 0; 
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; 
    background: linear-gradient(130deg, #ede9fe 0%, #e0f2fe 40%, #f8fafc 100%); 
    color: var(--text-dark); 
}

a { 
    color: inherit; 
    text-decoration: none; 
}

body { 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
}

/* ==========================================
   HEADER E NAVEGAÇÃO
   ========================================== */

header { 
    -webkit-backdrop-filter: blur(18px); 
    backdrop-filter: blur(18px); 
    background: rgba(15, 23, 42, 0.6); 
    color: #fff; 
    position: sticky; 
    top: 0; 
    z-index: 40; 
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.25); 
}

.header-inner { 
    max-width: 960px; 
    margin: 0 auto; 
    padding: 1rem 1.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 1rem; 
}

.brand { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    font-weight: 600; 
    letter-spacing: 0.02em; 
}

.brand svg { 
    width: 1.6rem; 
    height: 1.6rem; 
    color: var(--brand-accent); 
}

.back-link { 
    padding: 0.45rem 0.9rem; 
    border-radius: 999px; 
    background: rgba(255, 255, 255, 0.15); 
    color: #f8fafc; 
    font-weight: 500; 
    display: flex; 
    align-items: center; 
    gap: 0.4rem; 
    transition: background 0.2s ease; 
}

.back-link:hover, 
.back-link:focus-visible { 
    background: rgba(56, 189, 248, 0.25); 
}

/* ==========================================
   CONTEÚDO PRINCIPAL
   ========================================== */

main { 
    flex: 1; 
}

.hero { 
    max-width: 960px; 
    margin: 0 auto; 
    padding: 4.5rem 1.6rem 2.5rem; 
    text-align: center; 
}

.hero h1 { 
    font-size: clamp(2.4rem, 4vw, 3.2rem); 
    margin-bottom: 1rem; 
    line-height: 1.2; 
}

.hero p { 
    font-size: 1.15rem; 
    color: var(--text-muted); 
    max-width: 740px; 
    margin: 0 auto 1.2rem; 
    line-height: 1.8; 
}

.meta { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 1rem; 
    flex-wrap: wrap; 
    color: #0ea5e9; 
    font-weight: 600; 
}

/* ==========================================
   SEÇÕES DE CONTEÚDO
   ========================================== */

.sections { 
    max-width: 960px; 
    margin: 0 auto 4rem; 
    padding: 0 1.6rem 3rem; 
    display: grid; 
    gap: 2.8rem; 
}

section { 
    background: rgba(255, 255, 255, 0.92); 
    border-radius: 28px; 
    padding: 2.8rem 2.4rem; 
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.12); 
    position: relative; 
    overflow: hidden; 
}

section::before { 
    content: ""; 
    position: absolute; 
    top: -40%; 
    right: -20%; 
    width: 360px; 
    height: 360px; 
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0)); 
    transform: rotate(18deg); 
}

section h2 { 
    margin-top: 0; 
    margin-bottom: 1rem; 
    font-size: 1.9rem; 
    color: var(--brand-primary); 
    position: relative; 
}

section p { 
    position: relative; 
    color: var(--text-muted); 
    font-size: 1.02rem; 
    line-height: 1.9; 
    margin-bottom: 1.2rem; 
}

section strong { 
    color: var(--text-dark); 
}

/* ==========================================
   CITAÇÕES E CALLOUTS
   ========================================== */

blockquote { 
    position: relative; 
    margin: 2rem auto; 
    padding: 1.6rem 2rem; 
    background: rgba(15, 23, 42, 0.08); 
    border-left: 6px solid var(--brand-primary); 
    border-radius: 18px; 
    font-style: italic; 
    color: var(--text-dark); 
}

blockquote::before { 
    content: "\201C"; 
    font-size: 3rem; 
    color: rgba(37, 99, 235, 0.35); 
    position: absolute; 
    top: -18px; 
    left: 16px; 
}

.callout { 
    background: var(--brand-soft); 
    border-radius: 22px; 
    padding: 1.8rem 2rem; 
    box-shadow: 0 26px 56px rgba(37, 99, 235, 0.15); 
    color: var(--text-dark); 
    margin-top: 2.2rem; 
    position: relative; 
}

.callout h3 { 
    margin-top: 0; 
    font-size: 1.4rem; 
    color: var(--brand-primary); 
}

/* ==========================================
   CARD DE INFORMAÇÕES DO USUÁRIO
   ========================================== */

.user-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin: 2rem auto;
    max-width: 960px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInFromTop 0.6s ease-out;
}

.user-info-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    color: white;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.user-avatar .icon {
    width: 24px;
    height: 24px;
    color: #34d399;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-email {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    word-break: break-word;
}

.user-role {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-actions .btn {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-actions .btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.user-actions .btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* ==========================================
   UTILITÁRIOS
   ========================================== */

.icon-sm {
    width: 16px;
    height: 16px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.badge-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.d-none {
    display: none !important;
}

/* ==========================================
   FOOTER
   ========================================== */

footer { 
    background: rgba(15, 23, 42, 0.9); 
    color: #e2e8f0; 
    padding: 2.4rem 1.6rem; 
    margin-top: auto;
}

footer .footer-inner { 
    max-width: 960px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}

footer a { 
    color: #bae6fd; 
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover,
footer a:focus-visible {
    color: #38bdf8;
    text-decoration: underline;
}

.footer-back-link {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: center;
}

.footer-back-link .btn {
    background: rgba(56, 189, 248, 0.15);
    color: #bae6fd;
    border-color: rgba(56, 189, 248, 0.3);
}

.footer-back-link .btn:hover,
.footer-back-link .btn:focus-visible {
    background: rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    transform: translateY(-1px);
}

/* ==========================================
   ANIMAÇÕES
   ========================================== */

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   IMAGENS
   ========================================== */

.historia-image {
    width: 100%;
    border-radius: 18px;
    margin-top: 1.5rem;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

@media (max-width: 720px) {
    section { 
        padding: 2.3rem 1.7rem; 
    }
    
    .hero { 
        padding-top: 3.2rem; 
    }
    
    .user-info-card { 
        margin: 1rem; 
    }
    
    .user-info-content {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .user-name {
        font-size: 1rem;
    }
    
    .user-email {
        font-size: 0.8rem;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
}