/* ----------------------------------------------------------
   Base
---------------------------------------------------------- */

:root {
  --bg-dark: #020617;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --accent: #ffcc00;
  --accent-soft: rgba(255, 204, 0, 0.18);
  --danger: #ef4444;
  --going: #22c55e;
  --maybe: #f97316;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-strong: 0 30px 60px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text",
    sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #000 100%);
  color: var(--text-main);
}

/* ----------------------------------------------------------
   Top image only
---------------------------------------------------------- */

/* Top: full image, no cropping */
.hero {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.hero-img {
  width: 100%;
  height: auto;   /* ← keeps full picture visible */
  display: block;
}


/* ----------------------------------------------------------
   Blue sheet below image
---------------------------------------------------------- */

.sheet {
  max-width: 500px;
  margin: 0 auto;
  margin-top: -40px;          /* full image, then blue block */
  padding: 22px 16px 40px;

  background: radial-gradient(circle at top, #0b1f3b 0, #020617 60%);
  border-radius: 32px 32px 0 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(26px);

  display: flex;
  flex-direction: column;
  gap: 18px;
}


/* ----------------------------------------------------------
   Event header inside sheet
---------------------------------------------------------- */

.event-head {
  text-align: center;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--accent);
}

.event-head h1 {
  margin: 6px 0 4px;
  font-size: 22px;
  font-weight: 600;
}

.event-line {
  margin: 2px 0;
  font-size: 14px;
  color: rgba(249, 250, 251, 0.9);
}

/* ----------------------------------------------------------
   RSVP block
---------------------------------------------------------- */

.rsvp-block h2,
.location-block h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.calendar-btn {
  background: rgba(37, 99, 235, 0.9);
  border-color: rgba(59, 130, 246, 0.9);
  color: #e5efff;
}


.rsvp-block {
  padding-top: 6px;
}

/* Status buttons */

.status-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.status-btn {
  flex: 1;
  padding: 11px 6px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.92);
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

  transition: transform 0.1s ease, box-shadow 0.1s ease,
    background 0.12s ease, border-color 0.12s ease;
}

.status-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: none;
}

.status-btn.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.status-going.selected {
  background: rgba(34, 197, 94, 0.18);
  border-color: var(--going);
}

.status-maybe.selected {
  background: rgba(249, 115, 22, 0.2);
  border-color: var(--maybe);
}

.status-not-going.selected {
  background: rgba(248, 113, 113, 0.22);
  border-color: var(--danger);
}

/* Form */

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.form label span {
  color: #e5e7eb;
}

.form input {
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  font-size: 16px;
}

.form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.35);
}

/* Submit + messages */

.submit-btn {
  margin-top: 6px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 15px;
  font-weight: 600;
  background: var(--accent);
  color: #1f2933;
  cursor: pointer;
  box-shadow: var(--shadow-strong);
}

.submit-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.message {
  min-height: 18px;
  font-size: 13px;
  margin: 6px 4px 0;
}

.message.ok {
  color: #4ade80;
}

.message.error {
  color: var(--danger);
}

/* ----------------------------------------------------------
   Location block + link
---------------------------------------------------------- */

.location-block p {
  margin: 2px 0;
  font-size: 14px;
}

.link-btn {
  display: inline-flex;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.88);
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}

/* ----------------------------------------------------------
   Slight desktop tweak
---------------------------------------------------------- */

@media (min-width: 520px) {
  .hero-image {
    height: 340px;
  }

  .sheet {
    padding-inline: 20px;
  }
}

/* ----------------------------------------------------------
   Snowflakes (subtle)
---------------------------------------------------------- */

.snow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5; /* above background, below everything clickable */
}

.snowflake {
  position: absolute;
  top: -10px;
  color: #ffffff;
  opacity: 0.7;
  font-size: 10px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes snow-fall {
  0% {
    transform: translate3d(0, -10px, 0);
  }
  100% {
    transform: translate3d(20px, 110vh, 0);
  }
}

/* ----------------------------------------------------------
   Lufthansa 787 Animation
---------------------------------------------------------- */

.plane-wrapper {
  position: fixed;
  top: 12vh;              /* height of the flight path */
  left: -150px;           /* start off-screen */
  width: 120px;           /* size of the plane */
  z-index: 5;
  pointer-events: none;
  animation: plane-fly 18s linear infinite;
}

.plane-img {
  width: 100%;
  height: auto;
  animation: plane-bob 3s ease-in-out infinite;
}

/* Fly across the whole screen */
@keyframes plane-fly {
  0% {
    transform: translateX(-200px) scale(0.9);
  }
  70% {
    transform: translateX(calc(100vw + 200px)) scale(1);
  }
  100% {
    transform: translateX(calc(100vw + 200px)) scale(1);
  }
}

/* Gentle up–down bobbing */
@keyframes plane-bob {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* ----------------------------------------------------------
   Admin page
---------------------------------------------------------- */

.admin-body {
  margin: 0;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text",
    sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #000 100%);
  color: #f9fafb;
}

.admin-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 12px 40px;
}

.admin-header h1 {
  margin: 0;
  font-size: 20px;
}

.admin-header h2 {
  margin: 4px 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: #e5e7eb;
}

.admin-link {
  font-size: 13px;
  color: #93c5fd;
  text-decoration: none;
}

.admin-link:hover {
  text-decoration: underline;
}

.admin-controls {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.admin-status {
  color: #e5e7eb;
}

.admin-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 13px;
  cursor: pointer;
}

.admin-btn-danger {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(127, 29, 29, 0.85);
}

.admin-btn:hover {
  filter: brightness(1.1);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  padding: 8px 6px;
  text-align: left;
}

.admin-table th {
  font-weight: 600;
  color: #e5e7eb;
}
