/* 🌌 Global Theme */
body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #00FF00;
  font-family: 'Orbitron', sans-serif;
}

/* ✨ Neon Glow Headings */
.orbitron-heading,
.glow-heading {
  color: #00FF00;
  text-shadow: 0 0 8px #00FF00;
}

/* 🖖 Home Tab Styles */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.welcome-section {
  text-align: center;
  margin-bottom: 3rem;
}
.welcome-paragraph {
  color: #00FF00;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  font-size: 1.1rem;
}
.visit-count {
  font-size: 1.05rem;
  color: #00FF00;
}
.emoji {
  margin-right: 0.4rem;
}
.hint {
  font-size: 0.9rem;
  color: #999;
}
.center-button {
  margin-top: 1.2rem;
}
.discord-button {
  background-color: #ab6e11;
  color: black;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 0 10px #ab6e11;
  transition: all 0.2s ease-in-out;
}
.discord-button:hover {
  background-color: black;
  color: #ab6e11;
  box-shadow: 0 0 15px #ab6e11;
}

/* ✅ NEW: Glowing stat block */
.hud-highlight-box {
  background-color: rgba(0, 255, 0, 0.05);
  border: 2px solid #00FF00;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  margin-top: 1.2rem;
  display: inline-block;
  font-size: 1.05rem;
  box-shadow: 0 0 10px #00FF00 inset;
  animation: glowPulse 2s infinite ease-in-out;
}

/* ✅ Centered loading wrapper (fixed height) */
.loading-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

/* ✅ Scrollbar style for News */
.styled-scroll {
  scrollbar-color: #00FF00 #000;
  scrollbar-width: thin;
}
.styled-scroll::-webkit-scrollbar {
  width: 8px;
}
.styled-scroll::-webkit-scrollbar-thumb {
  background: #00FF00;
  border-radius: 4px;
}
.styled-scroll::-webkit-scrollbar-track {
  background: #111;
}

.news-section {
  margin-top: 2rem;
}
.news-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 1rem;
}
.news-entry {
  margin-bottom: 1.5rem;
}
.news-date {
  color: #ab6e11;
  font-weight: bold;
  font-size: 1.1rem;
}
.news-title {
  color: #ff8c00;
  font-weight: bold;
}
.news-entry p {
  color: #00FF00;
  margin-top: 0.5rem;
}

.gallery-section {
  margin-top: 3rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  padding: 1rem;
}
.gallery-img {
  width: 100%;
  border: 2px solid #00FF00;
  border-radius: 10px;
  box-shadow: 0 0 10px #00FF00;
}

/* 🧪 Datapad Frame */
.datapad-frame {
  border: 3px solid #ab6e11;
  border-radius: 18px;
  padding: 2rem;
  margin: 2rem auto;
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 20px #00FF00 inset, 0 0 40px #ab6e11;
  animation: fadeIn 0.6s ease;
}

.datapad-frame.flex-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: auto;
  max-width: 100%;
  transition: all 0.3s ease;
}

.datapad-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.center-text {
  text-align: center;
}

.center-hud {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 1rem;
}

.hud-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.outer-frame-hidden {
  display: none !important;
}

.datapad-frame.flex-width {
  display: inline-block;
  width: auto;
}

/* ✨ MVP Banner */
.mvp-banner {
  background: linear-gradient(to right, #ab6e11, #ff8c00, #ab6e11);
  padding: 1rem 2rem;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: #000;
  text-align: center;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 0 10px #ff8c00;
  animation: pulseBanner 2s infinite ease-in-out;
}
.mvp-name {
  color: #00FF00;
  text-shadow: 0 0 5px #00FF00;
}

/* 🎛️ HUD Top Bar */
.hud-top-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  box-shadow: none;
  border-radius: 10px;
}

.hud-top-bar select,
.hud-top-bar input,
.hud-top-bar button {
  background-color: rgba(0, 0, 0, 0.6);
  color: #00FF00;
  border: 2px solid #ab6e11;
  font-family: 'Orbitron', sans-serif;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}
.hud-top-bar button:hover,
.hud-top-bar select:hover,
.hud-top-bar input:hover {
  background-color: #111;
  box-shadow: 0 0 6px #ab6e11;
  transform: scale(1.03);
}
.hud-top-bar input::placeholder {
  color: #00FF00aa;
}

/* ✅ Styled Select (for custom dropdowns) */
.styled-select {
  background-color: rgba(0, 0, 0, 0.6);
  color: #00FF00;
  border: 2px solid #ab6e11;
  font-family: 'Orbitron', sans-serif;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  width: 100%;
  max-width: 320px;
}

.styled-select:hover {
  background-color: #111;
  box-shadow: 0 0 6px #ab6e11;
  transform: scale(1.03);
}

/* 📊 Table Styling */
.futuristic-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
  background-color: rgba(26, 26, 26, 0.8);
}
.futuristic-table thead {
  background: linear-gradient(to right, #003333, #2d0033);
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
}
.futuristic-table th,
.futuristic-table td {
  border: 1px solid #00FF00;
  padding: 0.75rem;
  text-align: center;
  transition: background-color 0.3s ease;
}
.futuristic-table tbody tr:nth-child(even) {
  background-color: rgba(0, 255, 0, 0.025);
}
.futuristic-table tbody tr:nth-child(odd) {
  background-color: rgba(0, 0, 255, 0.03);
}
.futuristic-table tbody tr:hover {
  background: linear-gradient(to right, #9400D3 0%, #14FFEC 100%);
  color: black;
  box-shadow: inset 0 0 8px #00FF00;
  text-shadow: none;
}

/* 🔁 Sortable Headers */
th.sortable {
  cursor: pointer;
  position: relative;
}
th.sortable:hover {
  background-color: #222;
  text-shadow: 0 0 5px #00FF00;
}

/* 💊 Health Pill Styling */
.health-button {
  font-weight: bold;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: black;
  font-family: 'Orbitron', sans-serif;
  border: 2px solid #000;
  min-width: 100px;
  display: inline-block;
  text-align: center;
  font-size: 0.9rem;
  animation: glowPulse 2s infinite ease-in-out;
}
.health-button:hover {
  color: #fff;
}
.legendary {
  background: linear-gradient(to right, #ffd700, #ff8c00, #e100ff);
  color: black;
  font-weight: bold;
  border: none;
  box-shadow: 0 0 12px #ffd700, 0 0 20px #e100ff inset;
  animation: shinePulse 2.5s infinite ease-in-out;
}
.thriving {
  background: #14FFEC;
  box-shadow: 0 0 12px #14FFEC;
}
.struggling {
  background: #FFFF00;
  box-shadow: 0 0 12px #FFFF00;
}
.critical {
  background: #FF0055;
  box-shadow: 0 0 12px #FF0055;
}

/* 📱 Mobile Scroll */
.scroll-container {
  display: inline-block;
  overflow-x: auto;
  margin-bottom: 2rem;
}

/* 🌟 Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulseBanner {
  0%, 100% { box-shadow: 0 0 10px #ff8c00; }
  50% { box-shadow: 0 0 20px #ff8c00; }
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.9; }
}
@keyframes shinePulse {
  0%, 100% {
    box-shadow: 0 0 20px #ffd700, 0 0 40px #e100ff inset;
  }
  50% {
    box-shadow: 0 0 30px #ff8c00, 0 0 60px #ffd700 inset;
  }
}

/* ✅ Global Reset */
a {
  text-decoration: none;
  color: inherit;
}
body, button, select, input, a, th, td {
  font-family: 'Orbitron', sans-serif;
}

/* ✅ Neon Tab Bar */
nav.tab-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background-color: black;
  border-top: 2px solid #00FF00;
  border-bottom: 2px solid #00FF00;
}
nav.tab-bar a {
  color: black;
  background-color: #00FF00;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.5rem 1.2rem;
  border: 2px solid #00FF00;
  border-radius: 12px;
  box-shadow: 0 0 8px #00FF00;
  min-width: 120px;
  text-align: center;
  transition: all 0.2s ease-in-out;
}
nav.tab-bar a:hover {
  background-color: black;
  color: #00FF00;
  box-shadow: 0 0 12px #00FF00;
  transform: scale(1.05);
}

/* 🎖️ Elite MVP Banner Upgrade */
.elite-banner {
  background: linear-gradient(to right, #ffd700, #ff8c00, #e100ff);
  color: black;
  padding: 1rem 2rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 14px;
  font-weight: bold;
  box-shadow: 0 0 20px #ffd700, 0 0 40px #e100ff inset;
  animation: shinePulse 2.5s infinite ease-in-out;
}
.elite-banner .mvp-name {
  color: #000;
  background: #fff8dc;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-weight: 800;
  text-shadow: none;
  margin-left: 0.4rem;
}

/* ❎ Suppress outer layout glow without losing structure */
.layout-frame-neutral {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 🔧 Remove glow/border from global layout wrapper */
.layout-frame-no-border {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
