/* ===== BASE STYLES ===== */

:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #9f7aea;
}

/* Page */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #071026 0%, #07142a 100%);
  color: #e6eef6;
}

/* Header */
header {
  background: #222;
  color: #fff;
  padding: 12px 20px;
}

/* Nav appearance ONLY */
.navlinks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navlinks li {
  margin-right: 16px;
}

.navlinks a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

.navlinks a:hover {
  opacity: 0.85;
}

/* Main layout */
main {
  padding: 24px;
  max-width: 960px;
  margin: 0 auto;
}

/* Headings */
h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: 0.6px;

  /* Keep existing text color */
  color: #f5e7c0;

  /* Solar anima glow */
  text-shadow:
    0 0 6px rgba(255, 214, 102, 0.35),   /* inner gold */
    0 0 12px rgba(255, 186, 73, 0.35),   /* warm halo */
    0 0 24px rgba(255, 165, 0, 0.25),    /* solar flare */
    0 0 36px rgba(255, 140, 0, 0.15);    /* soft outer aura */
}

h2, h3 {
  color: var(--accent);
}

/* Text */
p, ul, ol {
  line-height: 1.5;
}

/* Content links (not nav) */
main a,
main a:visited {
  color: var(--accent);
  text-decoration: none;
  position: relative;
  display: inline-block; /* ✅ REQUIRED for mobile ::after */
}

main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 214, 102, 0),
    rgba(255, 214, 102, 0.9),
    rgba(255, 214, 102, 0)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
  main a:hover::after {
    opacity: 1;
  }
}

/* Mobile: always visible */
@media (max-width: 767px) {
  main a::after {
    opacity: 0.6;
  }
}



/* Cards */
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.35);
}

.card.compact {
  padding: 1rem;
}

/* Footer */
footer {
  background: #222;
  color: #ccc;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.9em;
}
