/* =============================================================================
   Reception RSVP - Funky Retro Styles
   ============================================================================= */

/* CSS Variables - Easy to customize colors */
:root {
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --primary: #e94560;
  --secondary: #ff6b6b;
  --accent: #feca57;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --success: #10b981;
  --border-radius: 16px;
  --font-display: 'Pacifico', cursive;
  --font-body: 'Space Grotesk', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* =============================================================================
   Animated Background Blobs
   ============================================================================= */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  bottom: -150px;
  right: -150px;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--secondary), var(--purple));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.95);
  }
  75% {
    transform: translate(-50px, -30px) scale(1.05);
  }
}

/* =============================================================================
   Container & Layout
   ============================================================================= */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* =============================================================================
   Header
   ============================================================================= */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  background: linear-gradient(135deg, var(--accent), var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.detail-icon {
  font-size: 1.4rem;
}

/* =============================================================================
   Form Styles
   ============================================================================= */
.form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent);
}

.form-group {
  margin-bottom: 24px;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Text Inputs */
.input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  transition: all 0.3s ease;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.2);
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

/* =============================================================================
   Radio Cards (Yes/No/Maybe)
   ============================================================================= */
.radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.radio-card {
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.radio-emoji {
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.radio-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.radio-card:hover .radio-content {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.radio-card:hover .radio-emoji {
  transform: scale(1.2);
}

.radio-card input:checked + .radio-content {
  border-color: var(--primary);
  background: rgba(233, 69, 96, 0.15);
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.2);
}

/* Different colors for each option */
.radio-card:first-child input:checked + .radio-content {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.radio-card:last-child input:checked + .radio-content {
  border-color: var(--accent);
  background: rgba(254, 202, 87, 0.15);
  box-shadow: 0 0 20px rgba(254, 202, 87, 0.2);
}

/* =============================================================================
   Stepper (Plus Ones)
   ============================================================================= */
.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.stepper-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stepper-btn:hover {
  transform: scale(1.1);
}

.stepper-btn:active {
  transform: scale(0.95);
}

.stepper-input {
  width: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  background: transparent;
  border: none;
  color: var(--text);
}

/* =============================================================================
   Submit Button
   ============================================================================= */
.submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =============================================================================
   Success Message
   ============================================================================= */
.success-message {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 48px 32px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: slideUp 0.5s ease;
}

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

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

.success-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--success);
  margin-bottom: 16px;
}

.ai-response {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 30px;
  font-style: italic;
}

.another-btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: transparent;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.another-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =============================================================================
   Location Mystery & Reveal
   ============================================================================= */
.location-mystery {
  color: var(--accent);
  font-style: italic;
  position: relative;
}

.location-mystery::before {
  content: '🤫';
  margin-right: 6px;
}

/* Location reveal card - shown after RSVP "yes" */
.location-reveal {
  margin: 24px 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(34, 211, 238, 0.15));
  border: 2px solid var(--purple);
  border-radius: var(--border-radius);
  animation: revealPop 0.6s ease;
}

@keyframes revealPop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.location-reveal-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.location-reveal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cyan);
  margin-bottom: 12px;
}

.location-reveal-address {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.location-reveal-detail {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.location-map-link {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: white;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.location-map-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(34, 211, 238, 0.4);
}

/* =============================================================================
   Footer
   ============================================================================= */
.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.host-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* =============================================================================
   Guest List Page Styles
   ============================================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-color: transparent;
}

/* Guest Cards */
.guest-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guest-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.guest-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.guest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.guest-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.guest-status {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.guest-status.yes {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.guest-status.no {
  background: rgba(233, 69, 96, 0.2);
  color: var(--primary);
}

.guest-status.maybe {
  background: rgba(254, 202, 87, 0.2);
  color: var(--accent);
}

.guest-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.guest-message {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-style: italic;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

/* =============================================================================
   Responsive Design
   ============================================================================= */
@media (max-width: 600px) {
  .container {
    padding: 20px 16px;
  }

  .form {
    padding: 24px 20px;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .radio-content {
    flex-direction: row;
    justify-content: center;
    padding: 16px;
  }

  .event-details {
    padding: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
