/* =========================================================
   HawkNet Media — shared stylesheet (mobile-first)
   One row format, everywhere: icon, name, chevron, optional
   status dot. No descriptions on public buttons. Sections are
   told apart purely by accent hue, not by explaining themselves.
   ========================================================= */

@font-face {
  font-family: "Bogart";
  src: url("/fonts/thisismyfont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0d0d;
  --nebula: #2f1760;
  --accent: #b46bff;
  --accent-dim: #6a00ff;
  --text: #d4b3ff;
  --text-dim: #9a83b8;
  --white: #ffffff;
  --online: #00ff88;
  --offline: #ff4444;
  --card-bg: rgba(180, 107, 255, 0.06);
  --card-border: rgba(180, 107, 255, 0.35);
  --divider: rgba(180, 107, 255, 0.18);
  --font-display: "Bogart", "Arial Narrow", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- per-section theming ---------- */
body[data-section="games"] {
  --accent: #52e0c4; --accent-dim: #0f9c82; --nebula: #0f3d35;
  --card-bg: rgba(82, 224, 196, 0.06); --card-border: rgba(82, 224, 196, 0.35); --divider: rgba(82, 224, 196, 0.18);
}
body[data-section="learn"] {
  --accent: #ffcf5c; --accent-dim: #c99a2e; --nebula: #3d2f0a;
  --card-bg: rgba(255, 207, 92, 0.07); --card-border: rgba(255, 207, 92, 0.35); --divider: rgba(255, 207, 92, 0.18);
}
body[data-section="socials"] {
  --accent: #ff6bb0; --accent-dim: #cc2d7a; --nebula: #3d0f28;
  --card-bg: rgba(255, 107, 176, 0.06); --card-border: rgba(255, 107, 176, 0.35); --divider: rgba(255, 107, 176, 0.18);
}
body[data-section="status"] {
  --accent: #6bffb0; --accent-dim: #1fcc7a; --nebula: #0a3d28;
  --card-bg: rgba(107, 255, 176, 0.06); --card-border: rgba(107, 255, 176, 0.35); --divider: rgba(107, 255, 176, 0.18);
}
body[data-section="tools"] {
  --accent: #5cc8ff; --accent-dim: #1f8fcc; --nebula: #0a2a3d;
  --card-bg: rgba(92, 200, 255, 0.06); --card-border: rgba(92, 200, 255, 0.35); --divider: rgba(92, 200, 255, 0.18);
}
body[data-section="apps"] {
  --accent: #ff9457; --accent-dim: #cc6a1f; --nebula: #3d200a;
  --card-bg: rgba(255, 148, 87, 0.06); --card-border: rgba(255, 148, 87, 0.35); --divider: rgba(255, 148, 87, 0.18);
}

/* ---------- reset & base (mobile first) ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  text-align: center;
  position: relative;
  background: var(--bg);
  transition: opacity 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}

body.fade-out { opacity: 0; }

a { color: inherit; }

/* ---------- nebula + particles ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, var(--nebula) 0%, var(--bg) 70%);
  z-index: -3;
  animation: nebulaMove 120s linear infinite;
  transition: background 0.6s ease;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  pointer-events: none;
  width: 2px;
  height: 2px;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle { 0% { transform: translateY(0); } 100% { transform: translateY(-800px); } }
@keyframes nebulaMove { 0% { background-position: 0 0; } 100% { background-position: 200px 200px; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeSlide { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: .7; } 100% { transform: scale(1); opacity: 1; } }
@keyframes dotFade { 0%, 100% { opacity: .35; } 50% { opacity: .8; } }

/* ---------- layout ---------- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
  padding: 88px 16px 32px;
}

img.logo {
  width: 120px;
  margin-bottom: 14px;
  animation: fadeSlide .8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  filter: drop-shadow(0 0 15px var(--accent));
}

body.is-home img.logo { width: 150px; margin-bottom: 16px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: normal;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: fadeSlide .8s ease .05s forwards;
  margin: 0 0 22px;
}
.eyebrow.has-title { margin-bottom: 8px; }

h1.page-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--white);
  text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 55%, transparent);
  margin: 0 0 8px;
  opacity: 0;
  animation: fadeSlide .9s ease .1s forwards;
}

p.page-subtitle {
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--text-dim);
  max-width: 340px;
  margin: 0 0 28px;
  line-height: 1.5;
  opacity: 0;
  animation: fadeSlide 1s ease .15s forwards;
}

/* ---------- server ip / copy box ---------- */
.copy-box {
  font-size: 1rem;
  width: 100%;
  max-width: 340px;
  margin: 0 0 24px;
  padding: 14px 20px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--white);
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .2s ease;
  animation: fadeSlide 1s ease .2s forwards;
  opacity: 0;
  transform: translateY(20px);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.copy-box span { color: var(--white); font-weight: bold; text-shadow: 0 0 10px var(--accent); }
.copy-box:active { transform: scale(0.98); }
.copy-box.copied { border-color: var(--online); box-shadow: 0 0 25px rgba(0,255,136,.7); }

/* ---------- button list (the one format, every page) ---------- */
.list {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s ease .3s forwards;
}

.card-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 2px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  text-decoration: none;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  color: inherit;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.card-group .card:last-child { border-bottom: none; }
.card:hover, .card:focus-visible { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.card:active { background: color-mix(in srgb, var(--accent) 16%, transparent); }

.card-icon {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.card-icon svg { width: 20px; height: 20px; }

.card-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--white);
  letter-spacing: .02em;
  margin: 0;
  flex: 1;
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 35%, transparent);
}

/* generic "this goes somewhere" chevron — same on every row */
.card::after {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(-45deg);
  opacity: .6;
}

/* ---------- status dot (badge on the icon, no text) ---------- */
.status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: .4;
  border: 2px solid var(--bg);
  animation: dotFade 1.4s ease-in-out infinite;
}
.status-dot.dot-online { background: var(--online); opacity: 1; box-shadow: 0 0 6px var(--online); animation: none; }
.status-dot.dot-offline { background: var(--offline); opacity: 1; box-shadow: 0 0 6px var(--offline); animation: none; }

/* ---------- mod grid (plugins reference page — informational, not nav) ---------- */
.mod-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  opacity: 0;
  animation: fadeIn 1s ease .3s forwards;
}
.mod-card {
  border: 2px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
  padding: 18px 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.mod-number { position: absolute; top: 14px; right: 18px; font-size: .7rem; color: color-mix(in srgb, var(--accent) 40%, transparent); letter-spacing: 1px; }
.mod-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); font-weight: normal; margin: 0 0 6px; text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent); }
.mod-desc { font-family: var(--font-body); font-size: .86rem; color: var(--text-dim); margin: 0; line-height: 1.5; }
.mod-tag { display: inline-block; margin-top: 10px; font-size: .66rem; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--card-border); color: color-mix(in srgb, var(--accent) 75%, var(--text-dim)); letter-spacing: .5px; text-transform: uppercase; }

.server-badge { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; opacity: 0; animation: fadeSlide 1s ease .2s forwards; }
.badge { font-size: .76rem; padding: 5px 14px; border: 1px solid var(--card-border); border-radius: 20px; background: var(--card-bg); color: var(--text); letter-spacing: .5px; }
.badge span { color: var(--white); font-weight: bold; }

/* ---------- top-right / back buttons ---------- */
.top-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 100;
  text-decoration: none;
  color: var(--text);
  font-size: .85rem;
  padding: 10px 16px;
  min-height: 40px;
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  background: rgba(13,13,13,.7);
  backdrop-filter: blur(8px);
  transition: all .25s ease;
  display: flex;
  align-items: center;
  gap: 7px;
}
.top-btn:hover, .top-btn:active { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); color: var(--white); }
.top-btn svg { width: 14px; height: 14px; opacity: .85; }

.back-button {
  position: fixed;
  top: 14px;
  left: 14px;
  font-size: .85rem;
  color: var(--accent);
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 10px 8px;
  min-height: 40px;
}
.back-button:hover, .back-button:active { opacity: 1; color: var(--white); }
.back-button svg { width: 14px; height: 14px; }

/* ---------- footer ---------- */
footer {
  font-size: .8rem;
  color: var(--accent);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 60%, transparent));
  margin-top: 40px;
  padding-bottom: 22px;
  z-index: 1;
}

/* ---------- accessibility ---------- */
a:focus-visible, .card:focus-visible, .copy-box:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- scale up gently for larger screens ---------- */
@media (min-width: 480px) {
  .main-content { padding: 100px 20px 36px; }
  img.logo { width: 140px; }
  body.is-home img.logo { width: 170px; }
  h1.page-title { font-size: 1.7rem; }
  p.page-subtitle { max-width: 400px; }
  .list, .copy-box, .mod-grid { max-width: 380px; }
}

@media (min-width: 720px) {
  .mod-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); max-width: 900px; }
}
