/* --- STARFALL ALLIANCE OFFICIAL STYLESHEET --- */
/* Theme: Warframe Void Steel / Tenno Gold

   Palette
   --void      deep space near-black blue
   --steel     panel steel
   --line      hairline borders
   --gold      tanaval / void gold
   --lotus     lotus cyan
   --red       grineer / danger red
   --teal      corpus teal
*/

:root {
  --void:   #07090d;
  --void-2: #0c1016;
  --panel:  #11161e;
  --panel-2:#161d27;
  --line:   #242e3d;
  --gold:   #c9a45c;
  --gold-2: #e7c98b;
  --gold-dim:#8a7350;
  --lotus:  #3ec6d4;
  --red:    #c22b2b;
  --teal:   #5fd0c9;
  --text:   #c9d1db;
  --muted:  #7d8794;
}

/* Base styles */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--void) !important;
  background: radial-gradient(ellipse at bottom, #101a2b 0%, #07090d 100%) fixed !important;
  letter-spacing: 0.2px;
}

/* Dynamic Starfield Container */
#starfall-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

/* Individual Star Layers */
.star-layer {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  width: 1px;
  height: 1px;
}

.star-layer.small { width: 1px; height: 1px; animation: fall 100s linear infinite; }
.star-layer.medium { width: 2px; height: 2px; animation: fall 60s linear infinite; }
.star-layer.large { width: 3px; height: 3px; animation: fall 30s linear infinite; }

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  position: relative;
  z-index: 2;
}

/* --- NAVIGATION BAR --- */
.navbar {
  background-color: rgba(8, 11, 16, 0.96) !important;
  border-bottom: 1px solid var(--gold);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.navbar-dark .navbar-brand {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 1.5rem;
  color: var(--gold) !important;
  text-shadow: 0 0 15px rgba(201, 164, 92, 0.45);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  line-height: 1.15;
}

.navbar-dark .navbar-brand .brand-logo {
  height: 130px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(201, 164, 92, 0.35));
}

.navbar-dark .navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.navbar-dark .navbar-brand .brand-slogan {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 2px;
  font-style: italic;
  text-transform: none;
  color: var(--gold);
  opacity: 0.9;
  padding-top: 3px;
}

.navbar-nav .nav-link {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 0.98rem;
  font-weight: 600;
  color: #b9c2ce !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.25s ease;
  padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--gold-2) !important;
  text-shadow: 0 0 10px rgba(201, 164, 92, 0.7);
  transform: translateY(-1px);
}

/* Dropdown Menu Styles */
.dropdown-menu {
  background-color: rgba(13, 17, 24, 0.97) !important;
  border: 1px solid var(--line) !important;
  border-top: 2px solid var(--gold) !important;
  border-radius: 0 0 8px 8px;
}

.dropdown-item {
  font-family: 'Rajdhani', sans-serif !important;
  color: #b9c2ce !important;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.dropdown-item:hover {
  background-color: rgba(201, 164, 92, 0.12) !important;
  color: var(--gold-2) !important;
}

/* --- CELESTIAL / CODEX SECTIONS --- */
.col-md-4 {
  background: rgba(17, 22, 30, 0.75);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  margin-top: 30px;
  backdrop-filter: blur(8px);
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.col-md-4 h3 {
  font-family: 'Orbitron', sans-serif !important;
  color: var(--gold);
  text-align: center;
}

.col-md-4:hover {
  transform: translateY(-10px);
  border-color: rgba(201, 164, 92, 0.6);
  box-shadow: 0 0 20px rgba(201, 164, 92, 0.15);
}

/* Hero section */
.hero {
  background: rgba(9, 12, 18, 0.45) !important;
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

/* Footer */
.footer {
  position: relative;
  z-index: 3;
  background-color: #07090d !important;
  border-top: 1px solid var(--line);
  color: #78818e;
  padding: 1.5rem;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
}

/* Animation */
@keyframes fall {
  from { transform: translateY(0px); }
  to { transform: translateY(-2000px); }
}

/* --- WARFRAME UTILITY CLASSES --- */
.wf-display {
  font-family: 'Orbitron', sans-serif !important;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.wf-overline {
  font-family: 'Share Tech Mono', monospace !important;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.wf-gold   { color: var(--gold); }
.wf-gold-2 { color: var(--gold-2); }
.wf-lotus  { color: var(--lotus); }
.wf-red    { color: var(--red); }
.wf-teal   { color: var(--teal); }
.wf-muted  { color: var(--muted); }

.wf-panel {
  background: rgba(17, 22, 30, 0.82);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.wf-panel-gold {
  background: rgba(17, 22, 30, 0.82);
  border: 1px solid var(--gold);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

/* Angular Warframe-style button */
.btn-wf {
  display: inline-block;
  position: relative;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  text-decoration: none;
  padding: 10px 28px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.3s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
}

.btn-wf:hover {
  background: var(--gold);
  color: #07090d;
  box-shadow: 0 0 22px rgba(201, 164, 92, 0.5);
}

.btn-wf-red {
  border-color: var(--red);
  color: var(--red);
}

.btn-wf-red:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 22px rgba(194, 43, 43, 0.5);
}

.btn-wf-lotus {
  border-color: var(--lotus);
  color: var(--lotus);
}

.btn-wf-lotus:hover {
  background: var(--lotus);
  color: #07090d;
}

/* Alliance crest diamond (clan sigil holder) */
.wf-sigil {
  width: 52px;
  height: 52px;
  background: var(--void-2);
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wf-sigil i {
  transform: rotate(-45deg);
  color: var(--gold);
  font-size: 1.2rem;
}

.wf-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: none;
  opacity: 0.7;
}

.wf-glitch {
  animation: wf-flicker 6s infinite;
}

@keyframes wf-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  96% { opacity: 0.6; }
  97% { opacity: 1; }
}