@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ==========================================================================
   DIRETRIZES INSTITUCIONAIS: BORDAS RETAS E MÁXIMA NITIDEZ
   ========================================================================== */
*, *::before, *::after {
  border-radius: 0px !important; /* BORDAS RIGOROSAMENTE RETAS */
  box-sizing: border-box;
}

:root {
  --color-black: #000000;
  --color-panel: #050505;
  --color-panel-elevated: #090909;
  --gold-primary: #D4AF37;
  --gold-champagne: #E5C07B;
  --gold-light: #F3E5AB;
  --gold-border: rgba(212, 175, 55, 0.28);
  --gold-border-focus: rgba(212, 175, 55, 0.65);
}

/* Otimização de renderização tipográfica no Windows */
html, body {
  background-color: #000000;
  color: #E2E8F0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ==========================================================================
   TIPOGRAFIA INSTITUCIONAL SÓBRIA & NÍTIDA
   ========================================================================== */
.font-serif-title {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-rendering: optimizeLegibility;
}

.font-sans-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.75;
}

.font-label {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
}

/* Cores sólidas de alto contraste que preservam o ClearType */
.text-gold-accent {
  color: #E5C07B;
}

.text-gold-deep {
  color: #D4AF37;
}

/* ==========================================================================
   FUNDO PRETO TOTAL COM FIBRA DE CARBONO SUTIL
   ========================================================================== */
.bg-carbon-black {
  background-color: #000000;
  background-image: 
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.009) 0px, rgba(212, 175, 55, 0.009) 1px, transparent 1px, transparent 6px);
  background-attachment: fixed;
}

.bg-panel-dark {
  background-color: #050505;
}

.bg-panel-card {
  background-color: #080808;
}

/* ==========================================================================
   LINHAS E MOLDURAS EM OURO ESCOVADO REFINADO
   ========================================================================== */
.line-gold-brushed {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.15) 15%, rgba(229, 192, 123, 0.7) 50%, rgba(212, 175, 55, 0.15) 85%, transparent 100%);
}

.line-gold-solid {
  height: 1px;
  background-color: rgba(212, 175, 55, 0.35);
}

.border-gold-subtle {
  border: 1px solid var(--gold-border);
}

.border-gold-focus {
  border: 1px solid var(--gold-border-focus);
}

/* Cantoneiras angulares institucionais nos cantos */
.corner-accent {
  position: relative;
}
.corner-accent::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #D4AF37;
  border-left: 2px solid #D4AF37;
  pointer-events: none;
}
.corner-accent::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #D4AF37;
  border-right: 2px solid #D4AF37;
  pointer-events: none;
}

/* ==========================================================================
   LINKS DO MENU DE NAVEGAÇÃO (SUB-LINHA FIXA + CONTORNO RETO NO HOVER)
   ========================================================================== */
.nav-link-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #CBD5E1;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.45);
  background-color: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-btn:hover {
  color: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.75);
  background-color: rgba(212, 175, 55, 0.08);
}

/* Variação Tribunal do Júri (Plantão Criminal) */
.nav-link-btn.nav-link-red {
  color: #F87171;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(239, 68, 68, 0.65);
}

.nav-link-btn.nav-link-red:hover {
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.85);
  background-color: rgba(239, 68, 68, 0.12);
}

/* Variação JusMidas */
.nav-link-btn.nav-link-gold {
  color: #E5C07B;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(229, 192, 123, 0.7);
}

.nav-link-btn.nav-link-gold:hover {
  color: #FFFFFF;
  border-color: rgba(229, 192, 123, 0.95);
  background-color: rgba(212, 175, 55, 0.15);
}

/* ==========================================================================
   BOTÕES SÓBRIOS DE ALTA PERFORMANCE FORENSE
   ========================================================================== */
.btn-gold-executive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #E5C07B 0%, #D4AF37 55%, #B8860B 100%);
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid #FFF3D6;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.18);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-gold-executive:hover {
  background: linear-gradient(180deg, #FFF3D6 0%, #E5C07B 60%, #C2912A 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.btn-dark-executive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #E5C07B;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-dark-executive:hover {
  background: #0c0a06;
  border-color: #D4AF37;
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Botão de Destaque Portal JusMidas */
.btn-jusmidas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #F3E5AB;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1.5px solid #D4AF37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-jusmidas:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: #FFF3D6;
  color: #FFFFFF;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

/* Cards das Áreas */
.card-discipline {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #050505;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.card-discipline:hover {
  border-color: rgba(212, 175, 55, 0.65);
  background: #080808;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 18px rgba(212, 175, 55, 0.1);
}

/* Scrollbar fina institucional */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #1c1c1c;
  border: 1px solid rgba(212, 175, 55, 0.25);
}
::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
}
