/* Snel — Quick-inspired neobrutalist look: purple grid, hard shadows, mono headings. */

:root {
  --purple: #6450f0;
  --purple-dark: #4733c8;
  --ink: #141414;
  --paper: #f5f3ed;
  --green: #2fcc5f;
  --green-dark: #1ea84a;
  --red: #ff5c5c;
  --yellow: #ffd23f;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--purple);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
}

/* ---------- Nav ---------- */

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}

.topnav__logo {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-shadow: 3px 3px 0 var(--ink);
  letter-spacing: 1px;
}

.topnav__links { display: flex; gap: 6px; flex: 1; }

.topnav__link {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 10px;
}

.topnav__link--active, .topnav__link:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.topnav__user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.topnav__signout {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
}
.topnav__signout:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- Page chrome ---------- */

.page { max-width: 1000px; margin: 0 auto; padding: 28px 24px 80px; }

.page__title {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 3px 3px 0 var(--ink);
  font-size: 30px;
}

.page__subtitle a { color: var(--yellow); }

.flash {
  max-width: 760px;
  margin: 16px auto 0;
  padding: 12px 18px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}
.flash--notice { background: var(--green); }
.flash--alert { background: var(--yellow); }

.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.logo-hero {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 72px;
  color: #fff;
  text-align: center;
  text-shadow: 5px 5px 0 var(--ink);
  margin: 10px 0 30px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.button--launch { background: var(--green); color: var(--ink); }
.button--launch:hover { background: var(--green-dark); }
.button--primary { background: var(--yellow); }
.button--danger { background: var(--red); }
.button--small { padding: 7px 12px; font-size: 12px; border-width: 2px; }

/* ---------- Launch flow ---------- */

.launch { max-width: 760px; margin: 0 auto; }

.dropzone {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.08s ease;
}

.dropzone--over { background: #fff; transform: scale(1.01); border-style: dashed; }

.dropzone__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.dropzone__title {
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0;
}

.dropzone__hint { letter-spacing: 4px; color: #8a8678; text-transform: uppercase; }

.dropzone__list {
  list-style: none;
  margin: 18px auto 0;
  padding: 0;
  max-width: 420px;
  text-align: left;
}

.dropzone__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.dropzone__list li button {
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.launch__bar { margin-top: 22px; }

.launch__ready {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 800;
  font-size: 18px;
  padding: 18px;
}

.launch__controls { display: flex; gap: 14px; margin-top: 16px; }

.launch__name {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 0 14px;
}

.launch__name input {
  flex: 1;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  padding: 12px 0;
  background: transparent;
  min-width: 0;
}

.launch__domain { color: #8a8678; white-space: nowrap; }

/* ---------- Celebrate ---------- */

.celebrate { text-align: center; }

.celebrate__card { max-width: 560px; margin: 0 auto; padding: 30px; position: relative; z-index: 2; }

.celebrate__card h2 { letter-spacing: 2px; }

.celebrate__url { font-size: 18px; }
.celebrate__url a { color: var(--purple-dark); font-weight: 700; }

.celebrate__meta { color: #8a8678; font-size: 13px; }
.celebrate__meta a { color: var(--purple-dark); }

.celebrate__canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Listings ---------- */

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.site-card { overflow: hidden; }

.site-card__shot { display: block; border-bottom: 3px solid var(--ink); background: #fff; }
.site-card__shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.site-card__body { padding: 14px 16px 16px; }

.site-card__host { margin: 0 0 6px; font-weight: 700; word-break: break-all; }
.site-card__host a { color: var(--ink); }

.site-card__meta { margin: 0 0 12px; color: #8a8678; font-size: 12px; }

.site-card__actions { display: flex; gap: 10px; align-items: center; }
.site-card__actions form { display: inline; }

.empty-state { max-width: 560px; margin: 30px auto; text-align: center; padding: 36px; }

/* ---------- Explore ---------- */

.explore__orders { display: flex; gap: 10px; margin: 0 0 22px; }

.chip {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--ink);
}
.chip--active { background: var(--yellow); box-shadow: var(--shadow-sm); font-weight: 700; }

/* ---------- Settings ---------- */

.settings-card { max-width: 760px; margin: 0 auto 26px; padding: 22px 26px; }
.settings-card h2 { margin-top: 0; letter-spacing: 1px; font-size: 18px; }

.settings-option { display: flex; gap: 10px; align-items: baseline; margin: 10px 0; font-size: 14px; }

.settings-password {
  width: 100%;
  max-width: 380px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font: inherit;
}

.cli-snippet {
  background: var(--ink);
  color: #9ef7c3;
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Auth ---------- */

.auth-card, .gate-card {
  max-width: 460px;
  margin: 10vh auto 0;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  text-align: center;
}

.auth-card h1 {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 54px;
  margin: 0 0 6px;
}

.auth-card .flash { max-width: none; }

.dev-login { margin-top: 26px; font-size: 13px; color: #8a8678; }
.dev-login input { margin: 6px 4px; padding: 8px; border: 2px solid var(--ink); border-radius: 8px; font: inherit; }
.dev-login input[type="submit"] { background: #fff; cursor: pointer; }
