/**
 * WOLFLIX DESIGN SYSTEM
 * Sistema de design unificado para consistência visual
 */

:root {
  /* === CORES PRIMÁRIAS === */
  --color-primary: #e50914;
  --color-primary-hover: #c40812;
  --color-primary-dark: #831010;
  
  /* === CORES SECUNDÁRIAS === */
  --color-secondary: #141414;
  --color-secondary-light: #1f1f1f;
  --color-secondary-dark: #000000;
  
  /* === CORES DE FUNDO === */
  --bg-black: #000000;
  --bg-dark: #141414;
  --bg-dark-transparent: rgba(0, 0, 0, 0.75);
  --bg-gray: #2f2f2f;
  --bg-gray-light: #404040;
  
  /* === CORES DE TEXTO === */
  --text-white: #ffffff;
  --text-gray: #b3b3b3;
  --text-gray-dark: #808080;
  --text-muted: #6b6b6b;
  
  /* === CORES DE ESTADO === */
  --color-success: #16a34a;
  --color-error: #dc2626;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;
  
  /* === TIPOGRAFIA === */
  --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* === ESPAÇAMENTOS === */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */
  
  /* === BORDER RADIUS === */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-full: 9999px;
  
  /* === SOMBRAS === */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  
  /* === TRANSIÇÕES === */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* === Z-INDEX === */
  --z-dropdown: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
  --z-notification: 4000;
}

/* === RESET E BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--text-white);
  background-color: var(--bg-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === BOTÕES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-white);
}

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

.btn-primary:active {
  background-color: var(--color-primary-dark);
}

.btn-secondary {
  background-color: var(--bg-gray);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: var(--bg-gray-light);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--text-gray);
  color: var(--text-white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}

.btn-disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* === INPUTS === */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
  color: var(--text-white);
  background-color: var(--bg-gray);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-base);
}

.input::placeholder {
  color: var(--text-gray-dark);
}

.input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.input-error {
  border-color: var(--color-error);
}

.input-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input-success {
  border-color: var(--color-success);
}

/* === CARDS === */
.card {
  background-color: var(--bg-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base);
}

.card:hover {
  transform: scale(1.05);
}

.card-img {
  width: 100%;
  height: auto;
  display: block;
}

.card-body {
  padding: var(--spacing-md);
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-top10 {
  background-color: var(--color-primary);
  color: var(--text-white);
}

.badge-new {
  background-color: var(--color-info);
  color: var(--text-white);
}

.badge-exclusive {
  background-color: var(--color-warning);
  color: var(--bg-black);
}

/* === AVATAR === */
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.avatar-lg {
  width: 5rem;
  height: 5rem;
}

.avatar-xl {
  width: 8rem;
  height: 8rem;
}

/* === PROGRESS BAR === */
.progress-bar {
  width: 100%;
  height: 0.25rem;
  background-color: var(--bg-gray);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  transition: width var(--transition-slow);
}

/* === LOADING SPINNER === */
.spinner {
  border: 3px solid var(--bg-gray);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  width: 2rem;
  height: 2rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === ALERTS === */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.alert-error {
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid var(--color-error);
  color: var(--text-white);
}

.alert-success {
  background-color: rgba(22, 163, 74, 0.1);
  border: 1px solid var(--color-success);
  color: var(--text-white);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--color-warning);
  color: var(--text-white);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--color-info);
  color: var(--text-white);
}

/* === GRID DE CONTEÚDOS === */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
  }
}

/* === UTILITÁRIOS === */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === ACESSIBILIDADE === */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--text-white);
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  z-index: var(--z-notification);
}

.skip-to-content:focus {
  top: 0;
}

/* Focus visible para navegação por teclado */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
