/* =========================================================
   App Building With the Boys — shared stylesheet
   Dark "gamer" theme: near-black background, neon accents.
   Kids: try changing the colors below and see what happens!
   ========================================================= */

:root {
  --bg: #0b0e14;
  --bg-panel: #131826;
  --bg-card: #161d2e;
  --border: #232b40;

  --neon-cyan: #00f5d4;
  --neon-magenta: #ff3ec9;
  --neon-purple: #b967ff;
  --neon-yellow: #ffd60a;
  --neon-green: #39ff88;

  --text: #eaf0ff;
  --text-dim: #9aa5c0;

  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 20% -10%, #1a2140 0%, var(--bg) 55%) fixed;
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .heading-font {
  font-family: 'Press Start 2P', 'Rubik', system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.topbar .logo {
  font-family: 'Press Start 2P', sans-serif;
  font-size: 0.85rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 245, 212, 0.6);
  white-space: nowrap;
}

.topbar .logo span {
  color: var(--neon-magenta);
}

.topbar .tagline {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  transition: all 0.15s ease;
}

.back-home:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.35);
}

/* ---------- Hero (landing page) ---------- */

.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.hero h1 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 18px rgba(0, 245, 212, 0.45);
}

.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero .badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,245,212,0.15), rgba(185,103,255,0.15));
  border: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon-purple);
}

/* ---------- Card grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  padding: 0 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-color, var(--neon-cyan)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--card-color, var(--neon-cyan));
  box-shadow: 0 8px 28px -8px var(--card-color, var(--neon-cyan));
}

.card:hover::before {
  opacity: 0.12;
}

.card .icon {
  font-size: 2rem;
}

.card h3 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-grow: 1;
}

.card .status {
  align-self: flex-start;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 214, 10, 0.12);
  color: var(--neon-yellow);
  border: 1px solid rgba(255, 214, 10, 0.35);
}

.card .status.status-ready {
  background: rgba(57, 255, 136, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(57, 255, 136, 0.4);
}

/* ---------- Placeholder sub-pages ---------- */

.page-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.placeholder {
  max-width: 640px;
  width: 100%;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  position: relative;
}

.placeholder .big-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 18px var(--page-color, var(--neon-cyan)));
}

.placeholder h1 {
  font-size: 1.3rem;
  margin: 0.5rem 0 1rem;
  color: var(--page-color, var(--neon-cyan));
}

.placeholder .construction {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 214, 10, 0.1);
  border: 1px dashed rgba(255, 214, 10, 0.5);
  color: var(--neon-yellow);
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.placeholder p.desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.placeholder .stripes {
  height: 10px;
  border-radius: 999px;
  margin-bottom: 2rem;
  background: repeating-linear-gradient(
    45deg,
    var(--page-color, var(--neon-cyan)),
    var(--page-color, var(--neon-cyan)) 10px,
    var(--bg-panel) 10px,
    var(--bg-panel) 20px
  );
  opacity: 0.5;
}

/* ---------- Comment / request box (used by a couple of pages) ---------- */

.comment-box {
  max-width: 480px;
  margin: 0 auto 3rem;
  padding: 1.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.comment-box h2 {
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.comment-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.comment-form input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: 'Rubik', sans-serif;
  font-size: 0.9rem;
}

.comment-form input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.15);
}

.comment-form button {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--neon-cyan);
  color: #04231a;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.comment-form button:hover {
  transform: translateY(-1px);
}

.comment-form button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.comment-counter {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin: 0.5rem 0 0;
}

.comment-note {
  font-size: 0.68rem;
  color: var(--text-dim);
  opacity: 0.75;
  margin: 0.25rem 0 0;
  transition: color 0.15s ease;
}

.comment-note-error {
  color: var(--neon-magenta, #ff3ec9);
  opacity: 1;
  font-weight: 600;
}

.comment-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 240px;
  overflow-y: auto;
  text-align: left;
}

.comment-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text);
  word-break: break-word;
}

.comment-list li.comment-empty {
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
