/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #111;
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #4f46e5;
}

nav a {
  margin-left: 24px;
  font-weight: 500;
  color: #333;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.btn-primary {
  background: white;
  color: #4f46e5;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #f9fafb;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
  margin-bottom: 12px;
  color: #4f46e5;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step span {
  width: 40px;
  height: 40px;
  background: #4f46e5;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* CTA */
.cta {
  background: #111827;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta p {
  margin-bottom: 32px;
  color: #d1d5db;
}

.btn-secondary {
  background: #4f46e5;
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
}

/* Event page */
.event-page {
  background: #000000;
  color: #1f2937;
  overflow: hidden; /* Prevent body scroll, we scroll inside sheet */
}

/* Navbar overrides for event page */
.event-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  z-index: 50;
}
.event-navbar .logo, 
.event-navbar nav a {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Background */
.event-backdrop {
  position: fixed;
  inset: 0;
  background-color: #111;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
  z-index: -2;
}

.event-backdrop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

/* Layout Shell */
.event-shell {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end; /* Align sheet to bottom for desktop too, mimicking mobile feeling or centered */
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .event-shell {
    align-items: center;
    padding: 20px;
  }
}

/* Main Sheet (Modal Shell) */
.event-sheet {
  width: 100%;
  max-width: 600px; /* Mobile width constraint */
  height: 92vh; /* Nearly full height */
  background: #f9fafb; /* Light mode background */
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .event-sheet {
    height: 800px;
    max-height: 90vh;
    border-radius: 24px;
  }
}

/* Drag Indicator */
.event-drag-indicator-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 8px;
  background: #f9fafb;
  flex-shrink: 0;
  z-index: 10;
}

.event-drag-indicator {
  width: 40px;
  height: 4px;
  background-color: #e5e7eb;
  border-radius: 2px;
}

/* Scrollable Content */
.event-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 120px 16px; /* Bottom padding for sticky footer */
  -webkit-overflow-scrolling: touch;
}

/* Sections */
.event-section {
  margin-bottom: 24px;
}

/* Image Section */
.event-image-section {
  margin-bottom: 24px;
}

.event-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  background-color: #e5e7eb;
  display: block;
}

/* Title Section */
.event-title {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  margin-bottom: 8px;
}

.event-time-row {
  display: flex;
  align-items: center;
  color: #4b5563;
}

.icon-clock {
  margin-right: 6px;
  color: #6b7280;
}

.event-time-text {
  font-size: 16px;
  font-weight: 500;
  color: #4b5563;
}

/* Location Section */
.section-label {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.event-info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.icon-pin {
  margin-right: 6px;
  color: #6b7280;
  flex-shrink: 0;
  margin-top: 2px;
}

.location-text-container {
    display: flex;
    flex-direction: column;
}

.event-info-text {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
}

.event-address-text {
  font-size: 14px;
  color: #6b7280;
  margin-top: 2px;
}

.event-map-container {
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    position: relative;
    cursor: pointer;
    background: #e5e7eb;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 500;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Simple_World_Map.svg/2560px-Simple_World_Map.svg.png'); /* Generic Map BG */
    background-size: cover;
    background-position: center;
}

/* Host Section */
.event-host-container {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding: 8px 0;
}

.host-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 8px;
  object-fit: cover;
  background-color: #e5e7eb;
}

.host-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

/* Attendees Section */
.attendees-container {
    margin-top: 8px;
}

.avatar-stack {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    height: 40px;
    padding-left: 2px; /* slight offset for border */
}

.attendee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #f9fafb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    object-fit: cover;
    background: #e5e7eb;
}

.attendee-more-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1f2937;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 3px solid #f9fafb;
}

.attendees-text-container {
    margin-top: 4px;
}

.attendees-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Description */
.event-description {
  font-size: 15px;
  color: #1f2937;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-tag {
    background: #eff6ff; /* light blue-ish */
    color: #4f46e5;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

/* Action Bar (Sticky Footer) */
.event-action-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px;
  background: linear-gradient(to top, rgba(249, 250, 251, 1) 80%, rgba(249, 250, 251, 0));
  z-index: 20;
}

.event-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #4f46e5;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3), 0 2px 4px -1px rgba(79, 70, 229, 0.15);
  transition: transform 0.1s;
}

.event-action-button:active {
    transform: scale(0.98);
}

/* Scrollbar hiding for cleaner look */
.event-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.event-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 3px;
}

/* Footer */
.footer {
  background: #f3f4f6;
  padding: 24px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  margin-left: 16px;
  color: #555;
  font-size: 0.9rem;
}