/* ==========================================================================
   PORTALMU — DESIGN SYSTEM & TOKENS (THEME.CSS)
   Plataforma Central: Portal do Tempo | Classic | Season 21 | Sócios | Admin
   ========================================================================== */

:root {
  /* Cores Principais - Portal do Tempo */
  --bg-primary: #06080e;
  --bg-secondary: #0a0d17;
  --bg-tertiary: #101524;
  --bg-surface: rgba(16, 21, 36, 0.75);
  --bg-glass: rgba(12, 17, 30, 0.85);
  --bg-glass-card: rgba(20, 27, 46, 0.6);
  --bg-glass-border: rgba(212, 168, 83, 0.2);

  /* Identidade Visual — PortalMu Classic (Ouro e Fogo Lorencia) */
  --classic-gold: #d4a853;
  --classic-gold-light: #f7d58b;
  --classic-gold-dark: #9e7428;
  --classic-fire: #e25822;
  --classic-fire-glow: rgba(226, 88, 34, 0.4);
  --classic-accent: #ff9800;

  /* Identidade Visual — PortalMu Season 21 (Azul Cósmico e Raios Temporais) */
  --s21-blue: #00d2ff;
  --s21-cyan: #00f0ff;
  --s21-purple: #8a2be2;
  --s21-purple-glow: rgba(138, 43, 226, 0.45);
  --s21-blue-glow: rgba(0, 210, 255, 0.4);
  --s21-accent: #3a86ff;

  /* Cores de Status e Sistema */
  --color-success: #00e676;
  --color-warning: #ffb300;
  --color-danger: #ff1744;
  --color-info: #00b0ff;
  --color-partner: #00e5ff;

  /* Tipografia */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cinzel', 'Cinzel Decorative', 'Georgia', serif;
  --font-accent: 'Outfit', 'Inter', sans-serif;

  /* Textos */
  --text-main: #f0f4fc;
  --text-muted: #8e9bb5;
  --text-dim: #5c6882;
  --text-gold: #f4d078;
  --text-cyan: #7feaff;

  /* Sombras e Iluminação (Glow Effects) */
  --glow-gold: 0 0 25px rgba(212, 168, 83, 0.4), 0 0 50px rgba(212, 168, 83, 0.2);
  --glow-fire: 0 0 30px rgba(226, 88, 34, 0.5), 0 0 60px rgba(226, 88, 34, 0.25);
  --glow-s21: 0 0 25px rgba(0, 210, 255, 0.4), 0 0 50px rgba(138, 43, 226, 0.3);
  --glow-portal: 0 0 40px rgba(212, 168, 83, 0.35), 0 0 80px rgba(0, 210, 255, 0.25);
  --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.6), 0 5px 15px rgba(0, 0, 0, 0.4);

  /* Transições e Animações */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --header-height: 80px;
  --container-max-width: 1360px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

/* Reset Global & Configurações de Renderização */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-primary);
  overflow-x: hidden;
}

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

/* Custom Scrollbar Épica */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--classic-gold) 0%, var(--s21-blue) 100%);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--classic-gold-light) 0%, var(--s21-cyan) 100%);
}

/* Tipografia Auxiliar */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.text-gold {
  color: var(--classic-gold);
  background: linear-gradient(135deg, #fff2c6 0%, #d4a853 50%, #9e7428 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan {
  color: var(--s21-cyan);
  background: linear-gradient(135deg, #ffffff 0%, #00d2ff 50%, #8a2be2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-fire {
  color: var(--classic-fire);
  background: linear-gradient(135deg, #ffd180 0%, #e25822 60%, #b71c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Utilitários de Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  color: var(--classic-gold-light);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px auto 0;
}

.divider-ornament::before, .divider-ornament::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.6), transparent);
}

.divider-ornament span {
  font-size: 0.9rem;
  color: var(--classic-gold);
  text-shadow: var(--glow-gold);
}
