/* 
  THEME.CSS - Paleta de Cores e Temas
  Design: Rock moderno com tons vibrantes
*/

:root {
  /* Paleta Principal */
  --color-primary: #E53935;        /* Vermelho vibrante */
  --color-secondary: #FFB300;      /* Amarelo/Dourado */
  --color-background: #121212;     /* Preto/Cinza escuro */
  --color-text-primary: #E0E0E0;   /* Cinza claro */
  --color-text-secondary: #757575; /* Cinza médio */
  --color-accent: #4CAF50;         /* Verde contrastante */
  
  /* Tons Derivados */
  --color-primary-light: #FF6B63;
  --color-primary-dark: #C62828;
  --color-secondary-light: #FFD54F;
  --color-secondary-dark: #F57F17;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #E53935, #FFB300);
  --gradient-dark: linear-gradient(135deg, #0A0A0A, #1A1A1A);
  --gradient-accent: linear-gradient(135deg, #4CAF50, #2E7D32);
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(229, 57, 53, 0.15);
  --shadow-lg: 0 12px 24px rgba(229, 57, 53, 0.2);
  --shadow-xl: 0 20px 40px rgba(229, 57, 53, 0.25);
  
  /* Espaçamento */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Tipografia */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  
  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ========== APLICAÇÃO DE CORES ========== */

/* Backgrounds */
.bg-primary {
  background-color: var(--color-primary);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-accent {
  background-color: var(--color-accent);
}

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

/* Textos */
.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-accent {
  color: var(--color-accent);
}

.text-light {
  color: var(--color-text-primary);
}

.text-muted {
  color: var(--color-text-secondary);
}

/* Gradientes */
.gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* Sombras */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* ========== COMPONENTES COM TEMA ========== */

.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-background);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background-color: #2E7D32;
  border-color: #2E7D32;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* Cards */
.card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(229, 57, 53, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: rgba(255, 179, 0, 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-primary {
  border-left: 4px solid var(--color-primary);
}

.card-secondary {
  border-left: 4px solid var(--color-secondary);
}

.card-accent {
  border-left: 4px solid var(--color-accent);
}

/* Badges */
.badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background-color: rgba(229, 57, 53, 0.2);
  color: var(--color-primary);
}

.badge-secondary {
  background-color: rgba(255, 179, 0, 0.2);
  color: var(--color-secondary);
}

.badge-accent {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--color-accent);
}

/* Linhas/Divisores */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 57, 53, 0.3), transparent);
  margin: var(--spacing-xl) 0;
}

.divider-thick {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  margin: var(--spacing-xl) 0;
}

/* ========== ANIMAÇÕES COM TEMA ========== */

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(229, 57, 53, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.glow {
  animation: glow 2s ease-in-out infinite;
}

.shimmer {
  background: linear-gradient(90deg, rgba(229, 57, 53, 0.1), rgba(255, 179, 0, 0.2), rgba(229, 57, 53, 0.1));
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* ========== MODO RESPONSIVO ========== */

@media (max-width: 768px) {
  :root {
    --font-size-3xl: 1.75rem;
    --font-size-4xl: 2rem;
  }
}

/* ========== ACESSIBILIDADE ========== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #0A0A0A;
    --color-text-primary: #F5F5F5;
    --color-text-secondary: #BDBDBD;
  }
}
