/* =========================================================
   SISTEMA DE ESTILOS GLOBAIS - ARQUITETURA CSS UNIFICADA
   Foco: Mobile-First, Modularidade e Variáveis Universais
   ========================================================= */

/* 1. RESET E TOKENS (Base)
   --------------------------------------------------------- */
@import url('dx-typography.css');

:root {
  /* Cores Principais (Fundos) */
  --bg-primary: #121214;
  --bg-secondary: #1E1E24;
  --onyx-800: #1E1E24; /* Alias para manter compatibilidade com painéis */
  --onyx-850: #25252D;
  --onyx-700: #2C2C35;
  --onyx-bg: #09090B; /* Alias legado */
  --onyx-surface: #18181B; /* Alias legado */
  --onyx-card: rgba(24,24,27,.72); /* Alias legado */
  
  /* Cores de Destaque */
  --gold-primary: #FFB300;
  --gold-hover: #FFA000;
  --gold-light: rgba(255, 179, 0, 0.1);
  --gold: #D4AF37; /* Alias legado */
  --gold-dark: #B8860B; /* Alias legado */
  
  /* Bordas */
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.05);
  --onyx-border: rgba(255,255,255,.08); /* Alias legado */
  --onyx-border-hover: rgba(212,175,55,.4); /* Alias legado */
  
  /* Estados e Feedback */
  --danger: #FF3B30;
  --danger-light: rgba(255, 59, 48, 0.1);
  --success: #34C759;
  --success-light: rgba(52, 199, 89, 0.1);
  
  /* Tipografia */
  --font-base: var(--font-body);
  --text-main: #E1E1E6;
  --text-primary: #FAFAFA; /* Alias legado */
  --text-secondary: rgba(255,255,255,.7); /* Alias legado */
  --text-muted: #A8A8B3;

  /* Espaçamentos e Geometria */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-btn: 12px;
  
  /* Layouts Comuns */
  --sidebar-w: 260px;
  --header-h: 70px;
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-card: 0 8px 24px rgba(0,0,0,0.2);
  
  /* Transições */
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  background: var(--bg-primary);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* 2. TIPOGRAFIA E BASE
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.2;
}

p, li {
  color: var(--text-muted);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: var(--gold-primary);
  transition: var(--transition);
}

a:hover {
  color: var(--gold-hover);
}

/* Botões em <a> não herdam hover de link (evita texto laranja / halo estranho) */
a.btn-primary:hover,
a.btn-gold:hover,
a.cd-btn-checkout:hover,
a.act-primary:hover {
  color: #0a0a0a;
}

/* 3. CLASSES UTILITÁRIAS
   --------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold-primary); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

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

@media (min-width: 768px) {
  .d-md-block { display: block !important; }
  .d-md-none { display: none !important; }
}

@media (min-width: 1024px) {
  .d-lg-block { display: block !important; }
  .d-lg-none { display: none !important; }
}
