/* ==========================================================================
   GoldMiner Drill - Obsidian & Gold Master Theme
   Tailwind Extension & Custom Visual Architecture
   ========================================================================== */

:root {
  --bg-obsidian: #0D0A06;
  --bg-panel: #16120A;
  --bg-card: #21180D;
  --border-gold: #4C3525;
  --border-gold-subtle: rgba(214, 168, 75, 0.15);
  --border-gold-medium: rgba(214, 168, 75, 0.35);
  --gold-primary: #D6A84B;
  --gold-bright: #E7B955;
  --gold-muted: #9B8252;
  --text-primary: #EAE5D1;
  --text-secondary: #A8A494;
  --color-success: #58B881;
  --color-danger: #A44232;
  --gold-gradient: linear-gradient(135deg, #E7B955 0%, #D6A84B 50%, #9B8252 100%);
  --gold-text-gradient: linear-gradient(135deg, #FFF6D1 0%, #E7B955 40%, #D6A84B 100%);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-obsidian);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(214, 168, 75, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(155, 130, 82, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(214, 168, 75, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #0D0A06;
}
::-webkit-scrollbar-thumb {
  background: #2A1F13;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Gold Text Gradients */
.text-gold-gradient {
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glassmorphism & Cards */
.glass-nav {
  background: rgba(13, 10, 6, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
}

.glass-card {
  background: #16120A;
  border: 1px solid var(--border-gold);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(214, 168, 75, 0.45);
  box-shadow: 0 8px 24px -6px rgba(214, 168, 75, 0.12);
  transform: translateY(-2px);
}

.glass-panel {
  background: #16120A;
  border: 1px solid var(--border-gold);
}

/* Metallic Gold Button */
.btn-gold {
  background: linear-gradient(135deg, #E7B955 0%, #D6A84B 60%, #9B8252 100%);
  color: #0D0A06;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(214, 168, 75, 0.25);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(214, 168, 75, 0.4);
  filter: brightness(1.06);
}

.btn-outline-gold {
  background: rgba(214, 168, 75, 0.05);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  transition: all 0.2s ease;
}

.btn-outline-gold:hover {
  background: rgba(214, 168, 75, 0.12);
  border-color: var(--gold-primary);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(214, 168, 75, 0.2);
  transform: translateY(-1px);
}

/* HUD Panel Elements */
.hud-terminal {
  font-family: 'JetBrains Mono', monospace;
  background: #120E08;
  border: 1px solid var(--border-gold);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 25px rgba(214, 168, 75, 0.08);
}

.hud-grid {
  background-image: 
    linear-gradient(rgba(214, 168, 75, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 168, 75, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Pulsing Beacon */
.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  position: relative;
}

.pulsing-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-success);
  opacity: 0.6;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Tab Active Indicator */
.tab-active {
  background: rgba(214, 168, 75, 0.15) !important;
  border-color: var(--gold-primary) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 14px rgba(214, 168, 75, 0.18);
}

/* Background Subtle Grid */
.bg-grid-subtle {
  background-image: radial-gradient(rgba(214, 168, 75, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
}

/* FAQ Accordion */
details summary::-webkit-details-marker {
  display: none;
}
details[open] summary svg {
  transform: rotate(180deg);
}

/* ==========================================================================
   Bilingual Support (PT / EN)
   Zero-lag display switching based on body class
   ========================================================================== */
body.lang-pt .lang-en {
  display: none !important;
}

body.lang-en .lang-pt {
  display: none !important;
}

.lang-btn-active {
  background: var(--gold-primary) !important;
  color: #0D0A06 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(214, 168, 75, 0.4);
}

