/* ========================================
   OpenClaw Baltics Community Meetup #1
   Single-viewport dark theme
   ======================================== */

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

:root {
  --bg-primary: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --accent: #ff5a5f;
  --accent-glow: rgba(255, 90, 95, 0.3);
  --accent-soft: rgba(255, 90, 95, 0.12);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* --- Starfield --- */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: twinkle ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.2;
  }

  to {
    opacity: 1;
  }
}

.glow-orb {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255, 90, 95, 0.08) 0%, rgba(80, 60, 200, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Main: flex column, full viewport --- */
main {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

/* --- Nav --- */
.nav {
  padding: 12px 0 4px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.claw-icon {
  font-size: 1.2rem;
}

.accent {
  color: var(--accent);
}

/* --- Hero (compact) --- */
.hero {
  text-align: center;
  padding: 12px 0 10px;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 90, 95, 0.2);
  margin-bottom: 8px;
}

.badge-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 10px;
}

/* --- Detail chips (inline row) --- */
.details-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.detail-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.detail-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.detail-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}

.detail-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* --- Sold Out Badge --- */
.sold-out-badge {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 90, 95, 0.2);
  letter-spacing: 0.02em;
}

/* --- Organizer Link --- */
.organizer-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.organizer-link:hover {
  color: var(--accent);
}

/* --- Bottom: Vienna photo + Signup side-by-side --- */
.bottom-section {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 10px 0 6px;
  min-height: 0;
  align-items: stretch;
}

.vienna-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.vienna-card:hover {
  border-color: var(--border-hover);
}

.vienna-image {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.vienna-content {
  padding: 10px 14px;
  flex-shrink: 0;
}

.vienna-greeting {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1px;
}

.vienna-date {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* --- Signup Card --- */
.signup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h2 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-arrow {
  color: var(--accent);
  margin-right: 4px;
  font-weight: 400;
}

.signup-desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

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

.signup-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.signup-form input::placeholder {
  color: var(--text-tertiary);
}

.signup-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.signup-form button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.signup-form button:hover {
  background: #e84e53;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.signup-form button:active {
  transform: translateY(0);
}

.signup-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.signup-form button:hover .btn-icon {
  transform: translateX(3px);
}

.form-message {
  display: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.form-message.success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
}

.form-message.error {
  background: rgba(255, 90, 95, 0.1);
  border: 1px solid rgba(255, 90, 95, 0.25);
  color: var(--accent);
}

/* --- Footer --- */
.footer {
  padding: 6px 0 10px;
  text-align: center;
  flex-shrink: 0;
}

.footer p {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-disclaimer {
  font-size: 0.58rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  max-width: 480px;
  margin: 2px auto 0;
  line-height: 1.4;
}

/* --- Mobile: allow scrolling on small screens --- */
@media (max-width: 700px) {

  html,
  body {
    overflow: auto;
  }

  main {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 16px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .hero-sub {
    font-size: 0.78rem;
  }

  .details-row {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }

  .bottom-section {
    grid-template-columns: 1fr;
    gap: 10px;
    flex: none;
  }

  .vienna-card {
    height: auto;
  }

  .vienna-image {
    height: 180px;
    flex: none;
  }

  .signup-card {
    padding: 18px 16px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 1.4rem;
  }
}