/* ============================================================
   GLOBAL.CSS - Universo Underdog
   Tema Dark Premium Cinematográfico
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fundos */
    --bg-deep: #050507;
    --bg-primary: #0a0a0f;
    --bg-secondary: #0d0d14;
    --bg-card: #111118;
    --bg-hover: #16161f;

    /* Cores das 7 Áureas */
    --aura-vermelho: #dc2626;
    --aura-verde: #22c55e;
    --aura-azul: #3b82f6;
    --aura-amarelo: #eab308;
    --aura-ciano: #06b6d4;
    --aura-magenta: #a855f7;
    --aura-branco: #f4f4f5;

    /* Texto */
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Bordas */
    --border-subtle: #1f1f28;
    --border-hover: #2a2a38;

    /* Gradientes */
    --gradient-hero: linear-gradient(135deg, #050507 0%, #0d0d14 50%, #050507 100%);
    --gradient-vermelho: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    --gradient-azul: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow-red: 0 0 40px rgba(220, 38, 38, 0.3);
    --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.3);

    /* Tipografia */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TIPOGRAFIA === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
h2 { font-size: clamp(1.75rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--aura-vermelho);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--aura-amarelo);
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1400px;
}

.container-narrow {
    max-width: 800px;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(5, 5, 7, 0.98);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--aura-vermelho);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav a:hover,
.nav a.active {
    color: var(--text-primary);
}

/* === BOTÕES === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-vermelho);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-red);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--aura-vermelho);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
}

.btn-ghost:hover {
    color: var(--text-primary);
}

/* === CARDS === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-glow:hover {
    box-shadow: var(--shadow-glow-red);
}

/* === SEÇÕES === */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--bg-primary);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* === CITAÇÃO === */
.quote-block {
    position: relative;
    padding: 3rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--aura-vermelho);
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--aura-vermelho);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.8;
}

.quote-author {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.badge-vermelho { background: rgba(220, 38, 38, 0.2); color: var(--aura-vermelho); }
.badge-verde { background: rgba(34, 197, 94, 0.2); color: var(--aura-verde); }
.badge-azul { background: rgba(59, 130, 246, 0.2); color: var(--aura-azul); }
.badge-amarelo { background: rgba(234, 179, 8, 0.2); color: var(--aura-amarelo); }
.badge-ciano { background: rgba(6, 182, 212, 0.2); color: var(--aura-ciano); }
.badge-magenta { background: rgba(168, 85, 247, 0.2); color: var(--aura-magenta); }
.badge-branco { background: rgba(244, 244, 245, 0.2); color: var(--aura-branco); }

/* === FOOTER === */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-hover);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--aura-vermelho);
    color: white;
    transform: translateY(-2px);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .section {
        padding: 4rem 0;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }

    .card {
        padding: 1.5rem;
    }

    .quote-block {
        padding: 2rem;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* === SELECTION === */
::selection {
    background: var(--aura-vermelho);
    color: white;
}
