/* ============================================================
   GOAT ROYALTY APP — POWERHOUSE BRAND CSS
   Shared across all pages. Import with:
   <link rel="stylesheet" href="css/goat-brand.css">
   ============================================================ */

:root {
  --goat-red: #c1121f;
  --goat-red-dark: #8b0000;
  --goat-red-bright: #ff2d3d;
  --goat-gold: #f0c070;
  --goat-cream: #f5e6c8;
  --goat-black: #0a0a0a;
  --goat-dark: #141414;
  --goat-gray: #1e1e1e;
  --goat-silver: #c0c0c0;
  --goat-accent: #ff6b35;
  --goat-green: #00ff88;
  --goat-cyan: #00e5ff;
  --goat-purple: #b24bf3;

  --gradient-hero: linear-gradient(135deg, #c1121f 0%, #8b0000 50%, #4a0000 100%);
  --gradient-gold: linear-gradient(135deg, #f0c070 0%, #c89b3c 50%, #8b6914 100%);
  --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1e1e1e 100%);
  --gradient-power: linear-gradient(135deg, #ff2d3d 0%, #c1121f 50%, #8b0000 100%);

  --shadow-glow-red: 0 0 40px rgba(193, 18, 31, 0.6);
  --shadow-glow-gold: 0 0 40px rgba(240, 192, 112, 0.5);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* ===== RESET / BASE ===== */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--goat-black);
  color: var(--goat-cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== BACKGROUND VARIANTS ===== */
body.bg-hero {
  background: var(--goat-black) url('../img/goat-hero.png') center/contain no-repeat fixed;
  background-size: min(800px, 70vw);
  position: relative;
}
body.bg-hero::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.95) 70%, rgba(10,10,10,1) 100%);
  z-index: 0;
  pointer-events: none;
}
body.bg-hero > * { position: relative; z-index: 1; }

body.bg-icon {
  background: var(--goat-black) url('../img/goat-hero-icon.png') center center/contain no-repeat fixed;
  background-size: min(700px, 60vw);
}
body.bg-icon::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.97) 80%);
  z-index: 0;
  pointer-events: none;
}
body.bg-icon > * { position: relative; z-index: 1; }

body.bg-flying {
  background: var(--goat-black) url('../img/goat-flying.png') center/cover no-repeat fixed;
}
body.bg-flying::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.9) 100%);
  z-index: 0;
  pointer-events: none;
}
body.bg-flying > * { position: relative; z-index: 1; }

/* ===== TOP NAV ===== */
.goat-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(193, 18, 31, 0.4);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.goat-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--goat-cream);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 1px;
}
.goat-nav-brand img {
  height: 44px;
  width: 44px;
  filter: drop-shadow(0 0 10px rgba(193, 18, 31, 0.6));
}
.goat-nav-brand span {
  background: linear-gradient(90deg, var(--goat-gold) 0%, var(--goat-cream) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.goat-nav-links,
.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

/* Fix blue links on ALL pages — covers both class names */
.goat-nav-links a,  .goat-nav-links a:link,  .goat-nav-links a:visited,
.nav-links a,       .nav-links a:link,        .nav-links a:visited,
.goat-nav a,        .goat-nav a:link,          .goat-nav a:visited {
  color: var(--goat-cream) !important;
  text-decoration: none !important;
  -webkit-text-fill-color: var(--goat-cream) !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  white-space: nowrap;
}
.goat-nav-links a:hover, .nav-links a:hover, .goat-nav a:hover {
  background: rgba(193, 18, 31, 0.25);
  color: var(--goat-gold) !important;
  -webkit-text-fill-color: var(--goat-gold) !important;
  transform: translateY(-1px);
}
.goat-nav-links a.active, .nav-links a.active, .goat-nav a.active {
  background: var(--gradient-power);
  color: white !important;
  -webkit-text-fill-color: white !important;
  box-shadow: var(--shadow-glow-red);
}

/* ===== HERO SECTIONS ===== */
.goat-hero {
  padding: 60px 24px 40px;
  text-align: center;
  position: relative;
}
.goat-hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--goat-gold) 0%, var(--goat-cream) 50%, var(--goat-red-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 80px rgba(193, 18, 31, 0.5);
  letter-spacing: -1px;
}
.goat-hero .subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--goat-silver);
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.5;
}
.goat-hero img.hero-logo {
  max-width: 260px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(193, 18, 31, 0.7));
  margin: 0 auto 20px;
  display: block;
}

/* ===== BUTTONS ===== */
.goat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: var(--gradient-power);
  color: white;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(193, 18, 31, 0.4);
  text-transform: uppercase;
}
.goat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(193, 18, 31, 0.6), 0 0 40px rgba(255, 45, 61, 0.4);
}
.goat-btn.gold {
  background: var(--gradient-gold);
  color: var(--goat-black);
  box-shadow: 0 6px 20px rgba(240, 192, 112, 0.4);
}
.goat-btn.outline {
  background: transparent;
  border-color: var(--goat-red-bright);
  color: var(--goat-red-bright);
  box-shadow: none;
}
.goat-btn.outline:hover {
  background: var(--goat-red-bright);
  color: white;
}
.goat-btn.ghost {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: var(--goat-cream);
  box-shadow: none;
}
.goat-btn.ghost:hover {
  background: rgba(193, 18, 31, 0.2);
  border-color: var(--goat-red-bright);
}

/* ===== CARDS ===== */
.goat-card {
  background: linear-gradient(145deg, rgba(30,30,30,0.9) 0%, rgba(15,15,15,0.9) 100%);
  border: 1px solid rgba(193, 18, 31, 0.3);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.goat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-power);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.goat-card:hover {
  border-color: var(--goat-red-bright);
  box-shadow: var(--shadow-glow-red);
  transform: translateY(-4px);
}
.goat-card:hover::before {
  transform: scaleX(1);
}

/* ===== GRID LAYOUTS ===== */
.goat-grid {
  display: grid;
  gap: 20px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.goat-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.goat-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.goat-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ===== BADGES ===== */
.goat-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.goat-badge.hot { background: var(--gradient-power); color: white; }
.goat-badge.new { background: var(--goat-green); color: var(--goat-black); }
.goat-badge.pro { background: var(--gradient-gold); color: var(--goat-black); }
.goat-badge.ai { background: var(--gradient-power); color: white; }
.goat-badge.beta { background: var(--goat-cyan); color: var(--goat-black); }

/* ===== KNOBS / FADERS ===== */
.goat-knob {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a2a2a, #0a0a0a);
  border: 2px solid var(--goat-red-dark);
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), 0 4px 12px rgba(0,0,0,0.5);
  transition: border-color 0.2s;
}
.goat-knob:hover { border-color: var(--goat-red-bright); }
.goat-knob::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  width: 3px;
  height: 16px;
  background: var(--goat-gold);
  border-radius: 2px;
  transform-origin: center 28px;
  transform: translateX(-50%) rotate(var(--rot, 0deg));
  box-shadow: 0 0 8px var(--goat-gold);
}

/* ===== METERS ===== */
.goat-meter {
  width: 100%;
  height: 12px;
  background: var(--goat-gray);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
}
.goat-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--goat-green) 0%, var(--goat-gold) 60%, var(--goat-red-bright) 90%);
  width: var(--level, 0%);
  transition: width 60ms linear;
  border-radius: 6px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--goat-dark); }
::-webkit-scrollbar-thumb {
  background: var(--goat-red-dark);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--goat-red-bright); }

/* ===== FOOTER ===== */
.goat-footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--goat-silver);
  border-top: 1px solid rgba(193, 18, 31, 0.3);
  margin-top: 60px;
  background: rgba(10,10,10,0.8);
  position: relative;
  z-index: 1;
}
.goat-footer a { color: var(--goat-gold); text-decoration: none; }
.goat-footer a:hover { color: var(--goat-red-bright); }

/* ===== UTILITY ===== */
.center { text-align: center; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-col { display: flex; flex-direction: column; gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.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; }
.muted { color: var(--goat-silver); opacity: 0.8; }
.bold { font-weight: 700; }
.text-gold { color: var(--goat-gold); }
.text-red { color: var(--goat-red-bright); }
.text-green { color: var(--goat-green); }

/* ===== ANIMATIONS ===== */
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 20px rgba(193, 18, 31, 0.4); }
  50% { box-shadow: 0 0 40px rgba(193, 18, 31, 0.8); }
}
.pulse { animation: pulse-red 2s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float { animation: float 3s ease-in-out infinite; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease-out both; }