@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg: #09080f;
  --surface: rgba(10, 10, 20, 0.72);
  --text: #fff7f0;
  --muted: #dfd3cd;
  --accent: #ff9a3d;
  --accent-2: #ffe066;
  --logo-pink: #ff5fd2;
  --logo-purple: #8f54ff;
  --logo-yellow: #ffe75a;
  --logo-orange: #ff9a3d;
  --border: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 30% 10%, #342451, #0a0911 60%);
  min-height: 100vh;
}

a {
  color: #ffd7c9;
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background:
    linear-gradient(
      110deg,
      rgba(255, 95, 210, 0.18),
      rgba(143, 84, 255, 0.18) 35%,
      rgba(255, 154, 61, 0.15) 70%,
      rgba(255, 231, 90, 0.12)
    ),
    rgba(9, 8, 15, 0.86);
  border-bottom: 1px solid var(--border);
  overflow: visible;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  position: relative;
  padding-right: 175px;
}

.brand-logo {
  position: absolute;
  right: -14px;
  top: -14px;
  transform: none;
  width: 122px;
  height: 122px;
  display: inline-flex;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: rgba(255, 210, 120, 0.4);
  background: linear-gradient(
    120deg,
    rgba(255, 95, 210, 0.26),
    rgba(143, 84, 255, 0.24) 45%,
    rgba(255, 154, 61, 0.22)
  );
  color: #fff7ea;
  box-shadow: 0 0 0 1px rgba(255, 231, 90, 0.12) inset;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 84vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px 20px;
  background-image:
    linear-gradient(150deg, rgba(9, 8, 15, 0.55), rgba(9, 8, 15, 0.8)),
    url('./website-background.png');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 95, 210, 0.28), transparent 38%),
    radial-gradient(circle at 82% 18%, rgba(143, 84, 255, 0.3), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 154, 61, 0.24), transparent 36%),
    linear-gradient(150deg, rgba(9, 8, 15, 0.54), rgba(9, 8, 15, 0.78));
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-card {
  max-width: 800px;
  background: rgba(10, 8, 20, 0.62);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  animation: fadeUp 500ms ease-out;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 12px;
}

.hero p {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
}

.hero-register {
  margin-top: 20px;
  text-align: left;
}

.hero-register h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.hero-inline-form label {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 12px;
}

.hero-inline-form label > span {
  font-weight: 700;
  color: var(--text);
}

.hero-inline-form button {
  margin-left: 182px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin: 20px 0;
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-embed {
  margin-top: 8px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.media-embed iframe {
  width: 100%;
  min-height: 180px;
  border: 0;
}

.about-member-card h4 {
  margin: 14px 0 6px;
  font-size: 1rem;
}

.about-member-photo {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

form {
  display: grid;
  gap: 12px;
}

input,
button,
textarea {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
}

button {
  width: fit-content;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(
    120deg,
    var(--logo-yellow),
    var(--logo-orange) 45%,
    #ff7a62 72%,
    #ff5fd2
  );
  color: #241108;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.07);
}

.secondary-btn,
.danger-btn {
  padding: 7px 12px;
  font-size: 0.9rem;
  border-radius: 8px;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text);
  border: 1px solid var(--border);
}

.danger-btn {
  background: rgba(255, 87, 87, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 165, 165, 0.4);
}

.inline-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.hidden {
  display: none;
}

.map-frame {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 10px;
}

.status {
  margin-top: 6px;
  color: #f9d9cc;
  min-height: 1.2em;
}

#admin-video-list,
#admin-event-list,
#admin-subscriber-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

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

.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 86px;
}

.admin-sidebar h3 {
  margin-top: 0;
}

.admin-side-nav {
  display: grid;
  gap: 8px;
}

.admin-side-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.admin-side-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-side-nav a.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 210, 120, 0.4);
}

.admin-main {
  min-width: 0;
}

.admin-view-section {
  display: none;
}

.admin-view-section.is-active {
  display: block;
}

.admin-member-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-end;
    padding-right: 20px;
    gap: 10px;
  }

  .hero {
    min-height: 72vh;
  }

  .brand-logo {
    position: static;
    transform: none;
    width: 84px;
    height: 84px;
    margin-top: 2px;
  }

  .hero-inline-form label {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-inline-form button {
    margin-left: 0;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }
}
