/* ============================================
   Hexi — mod showcase styling.
   Colors live at the top. Change them and refresh.
   ============================================ */

:root {
  --bg:       #0a0c12;   /* near-black background */
  --surface:  #141826;   /* the mod cards */
  --border:   #232a3d;   /* card edges */
  --accent:   #4f9cff;   /* Hexi blue */
  --accent-2: #8a5bff;   /* secondary purple glow */
  --text:     #f1f4fb;   /* main text */
  --muted:    #8a93ac;   /* dim text */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 96px 24px 72px;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(79,156,255,0.18), transparent),
    radial-gradient(500px 300px at 80% 10%, rgba(138,91,255,0.12), transparent);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Blocky monospace logo — a nod to Minecraft without using its assets */
.logo {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  color: var(--muted);
  max-width: 460px;
  margin: 16px auto 32px;
  font-size: 1.1rem;
}

/* ---------- BUTTON ---------- */
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  padding: 12px 28px;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79,156,255,0.4);
}
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.button-discord {
  background: var(--accent-2);
}
.button-discord:hover {
  box-shadow: 0 12px 28px rgba(138,91,255,0.4);
}

/* ---------- MOD CARDS ---------- */
.mods {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: rgba(79,156,255,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.card-desc {
  color: var(--muted);
  margin-bottom: 18px;
}

.card-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.card-meta strong { color: var(--text); }

.card-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 56px 24px 40px;
}

/* ============================================
   Added: mod icons, support banner, view counter
   ============================================ */

/* Mod icon at the top of each card */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 14px;
  display: block;
  image-rendering: pixelated;   /* keeps pixel-art icons crisp */
}

/* "Loading…" / fallback text in the mods area */
.status {
  grid-column: 1 / -1;          /* span the whole row */
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

/* Support message band */
.support {
  text-align: center;
  max-width: 620px;
  margin: 8px auto 0;
  padding: 22px 24px;
  color: var(--text);
  font-size: 1.05rem;
  background: rgba(79, 156, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* View counter in the footer */
.views {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

/* ---------- BUG REPORT WIDGET ---------- */
.report-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(79, 156, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 28px rgba(79, 156, 255, 0.55);
}

.report-panel {
  position: fixed;
  bottom: 92px;
  right: 28px;
  width: min(320px, calc(100vw - 56px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 100;
  animation: rpSlideUp 0.2s ease;
}
@keyframes rpSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.report-panel[hidden] { display: none; }

.report-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.report-panel-header h3 { font-size: 0.95rem; font-weight: 700; }

.report-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.1s, background 0.1s;
}
.report-close:hover { color: var(--text); background: var(--border); }

.report-panel label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 12px 0 5px;
}
.report-panel label:first-of-type { margin-top: 0; }

.report-panel select,
.report-panel input[type="text"],
.report-panel textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 8px 11px;
  outline: none;
  transition: border-color 0.15s;
}
.report-panel select:focus,
.report-panel input[type="text"]:focus,
.report-panel textarea:focus { border-color: var(--accent); }
.report-panel textarea { resize: none; min-height: 88px; }

.report-submit {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.report-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 156, 255, 0.4);
}
.report-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.report-status {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  min-height: 1.1em;
}

/* Speech bubble prompt above the report button */
.report-bubble {
  position: fixed;
  bottom: 94px;
  right: 12px;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 101;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.report-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}
.report-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 22px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--text);
}