/* Environment Indicator */
.environment-indicator {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Development environment (orange) */
.environment-indicator[data-environment="development"] {
  background-color: #FF6B35;
  color: #FFFFFF;
}

/* Staging environment (yellow/amber) */
.environment-indicator[data-environment="staging"] {
  background-color: #FDB44B;
  color: #1A1A1A;
}

/* Content container */
.environment-indicator-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Label styling */
.environment-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.environment-emoji {
  font-size: 16px;
  line-height: 1;
}

/* Responsive text visibility - default to mobile */
.environment-text-full {
  display: none;
}

.environment-text-tablet {
  display: none;
}

.environment-text-mobile {
  display: inline;
}

/* Database path */
.environment-database {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
  letter-spacing: 0.2px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.environment-database-full {
  display: none;
}

.environment-database-tablet {
  display: none;
}

/* Desktop (≥1024px) - Full message + full path */
@media (min-width: 1024px) {
  .environment-indicator-content {
    padding: 12px 32px;
    gap: 6px;
  }

  .environment-label {
    font-size: 15px;
  }

  .environment-emoji {
    font-size: 18px;
  }

  .environment-text-full {
    display: inline;
  }

  .environment-text-tablet {
    display: none;
  }

  .environment-text-mobile {
    display: none;
  }

  .environment-database-full {
    display: inline;
  }

  .environment-database-tablet {
    display: none;
  }
}

/* Tablet (640px - 1023px) - Shortened message + abbreviated path */
@media (min-width: 640px) and (max-width: 1023px) {
  .environment-indicator-content {
    padding: 10px 24px;
    gap: 4px;
  }

  .environment-label {
    font-size: 14px;
  }

  .environment-emoji {
    font-size: 16px;
  }

  .environment-text-full {
    display: none;
  }

  .environment-text-tablet {
    display: inline;
  }

  .environment-text-mobile {
    display: none;
  }

  .environment-database-full {
    display: none;
  }

  .environment-database-tablet {
    display: inline;
  }
}

/* Mobile (<640px) - Icon + environment name only */
@media (max-width: 639px) {
  .environment-indicator-content {
    padding: 8px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .environment-label {
    font-size: 13px;
  }

  .environment-emoji {
    font-size: 14px;
  }

  .environment-database {
    display: none;
  }
}

/* Screen reader announcement on page load */
.environment-indicator::before {
  content: attr(data-environment) " environment active";
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Print styles - hide environment indicator when printing */
@media print {
  .environment-indicator {
    display: none;
  }
}

/* Layout */
.layout {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
}

@media (max-width: 640px) {
  .layout {
    padding: 1rem;
    gap: 1rem;
  }
}

@media (min-width: 960px) {
  .layout {
    gap: 2rem;
  }
  .layout.layout-full-width {
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* Main content grid */
.main-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.view-toggle {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  order: 1;
}

.filters {
  order: 2;
}

.results {
  order: 3;
}

@media (min-width: 960px) {
  .main-content-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    grid-template-rows: auto 1fr;
    gap: 2rem;
    align-items: start;
  }
  .layout-full-width .main-content-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .view-toggle {
    grid-column: 1 / -1;
    order: initial;
  }
  .filters {
    grid-column: 1;
    grid-row: 2;
    order: initial;
  }
  .layout-full-width .filters {
    display: none;
  }
  .results {
    grid-column: 2;
    grid-row: 2;
    order: initial;
  }
  .layout-full-width .results {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .main-content-wrapper {
    gap: 1rem;
  }
  .view-toggle {
    order: 1;
    gap: 8px;
  }
  .filters {
    order: 2;
  }
  .results {
    order: 3;
  }
}

/* View toggle buttons */
.view-toggle-btn {
  flex: 1;
  min-width: 140px;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal) var(--transition-base);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  min-height: 56px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.view-toggle-btn:hover {
  background: var(--color-bg);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.view-toggle-btn.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.view-toggle-btn:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  .view-toggle-btn {
    min-width: 0;
    padding: 12px 16px;
    font-size: var(--font-size-sm);
  }
}

@media (min-width: 1024px) {
  .view-toggle-btn {
    font-size: var(--font-size-lg);
    padding: 18px 28px;
  }
}

/* Filters panel */
.filters {
  display: grid;
  gap: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
  .filters {
    padding: var(--space-lg);
    gap: var(--space-md);
  }
  .field-grid {
    gap: var(--space-md);
  }
  .time-fields {
    gap: 20px;
  }
}

.filters fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.field-grid {
  display: grid;
  gap: var(--space-lg);
}

.time-fields {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 640px) {
  .time-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-label {
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
}

.field-hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-hint);
  line-height: 1.4;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 0;
  font-size: 0.9rem;
}

.status .error {
  color: var(--color-error);
  font-weight: 600;
}

.status .info {
  color: var(--color-text-secondary);
}

/* Results */
.results {
  display: grid;
  gap: 1rem;
}

.results-count {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Map */
.map {
  min-height: 60vh;
  max-height: 80vh;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d6d6d6;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.map.map-interactive {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Mobile: 60-70vh (the map is CONTENT, not decoration) */
@media (max-width: 640px) {
  .map {
    min-height: 60vh;
    max-height: 70vh;
  }
}

/* Tablet: 65-75vh (iPad users came here for the MAP) */
@media (min-width: 641px) and (max-width: 1023px) {
  .map {
    min-height: 65vh;
    max-height: 75vh;
  }
}

/* Desktop: 70-85vh (MAXIMUM MAP ENERGY) */
@media (min-width: 1024px) {
  .map {
    min-height: 70vh;
    max-height: 85vh;
  }
}

/* Ultra-wide displays: let it breathe */
@media (min-width: 1920px) {
  .map {
    min-height: 70vh;
    max-height: 1100px;
  }
}

/* Library sections */
.library-section {
  margin-bottom: var(--space-xl);
  scroll-margin-top: 80px;
}

.library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  padding: var(--space-lg) var(--space-xl);
  border-radius: 12px;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}

.library-header h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: white;
  margin: 0;
}

@media (max-width: 640px) {
  .library-header {
    padding: var(--space-md) var(--space-lg);
  }
  .library-header h2 {
    font-size: var(--font-size-lg);
  }
}

.library-link {
  color: white;
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  transition: all var(--transition-normal) var(--transition-base);
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.library-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Cards grid */
.cards-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Room cards */
.room-card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal) var(--transition-base);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.room-card:active {
  transform: translateY(-2px);
}

.card-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-border) 100%);
}

.card-thumbnail-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-hint);
}

.card-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-md);
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.capacity-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.card-description {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  flex: 1;
}

/* Booking cards */
.booking-card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal) var(--transition-base);
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--color-secondary);
}

.booking-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.booking-card.just-adjusted {
  animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
  0%, 100% {
    box-shadow: var(--shadow-lg);
    border-left-color: var(--color-secondary);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.3), var(--shadow-xl);
    border-left-color: var(--color-primary);
  }
}

.booking-card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.booking-event-name {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
}

.booking-time {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  font-weight: 500;
}

.booking-location {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.booking-room-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Favorite button */
.favorite-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal) var(--transition-base);
  color: var(--color-error);
}

.favorite-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

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

.favorite-btn.is-favorited svg {
  fill: currentColor;
}

/* Custom map markers */
.custom-marker {
  background: none;
  border: none;
  transition: all var(--transition-normal) var(--transition-base);
}

.custom-marker svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Marker color states */
.custom-marker .marker-fill {
  transition: fill var(--transition-normal) var(--transition-base);
  fill: #9CA3AF; /* Default grey */
}

/* Highlight state - amber (for markers with available rooms) */
.custom-marker.has-slots .marker-fill {
  fill: #F59E0B;
}

/* Favorites state - pink/error color */
.custom-marker.has-favorites .marker-fill {
  fill: #EF4444;
}

/* Active state - violet (when clicked) */
.custom-marker.marker-active .marker-fill {
  fill: #7C3AED;
}

.custom-marker.is-active {
  animation: pulse 2s ease-in-out infinite;
}

.custom-marker.is-active svg {
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.6));
}

/* Permanent label for search mode */
.marker-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2px;
  padding: 2px 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  color: black;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

/* Desktop font size increases */
@media (min-width: 1024px) {
  .library-header h2 {
    font-size: var(--font-size-2xl);
  }
  .card-title {
    font-size: var(--font-size-xl);
  }
  .card-description {
    font-size: var(--font-size-base);
  }
  .capacity-badge {
    font-size: var(--font-size-base);
  }
  .results-count {
    font-size: var(--font-size-base);
  }
  .field-label {
    font-size: var(--font-size-lg);
  }
  .field-hint {
    font-size: var(--font-size-base);
  }
  .status {
    font-size: var(--font-size-base);
  }
  .library-link {
    font-size: var(--font-size-base);
  }
  .reserve-link {
    font-size: var(--font-size-base);
  }
  .filters legend {
    font-size: var(--font-size-xl);
  }
  .booking-event-name {
    font-size: var(--font-size-2xl);
  }
  .booking-time {
    font-size: var(--font-size-lg);
  }
  .booking-location {
    font-size: var(--font-size-base);
  }
  .view-toggle-btn {
    font-size: var(--font-size-lg);
  }
}

/* Leaflet tooltip/popup font sizes */
.leaflet-tooltip {
  font-size: 13px;
  line-height: 1.5;
}

.custom-tooltip {
  white-space: normal !important;
  max-width: min(600px, 90vw) !important;
  min-width: min(280px, 90vw) !important;
  max-height: 400px !important;
  overflow-y: auto !important;
}

.custom-tooltip #scroll-target {
  scroll-margin-top: 0;
}

/* Auto-scroll tooltip to show upcoming events */
.leaflet-tooltip-pane .custom-tooltip:has(#scroll-target) {
  scroll-behavior: smooth;
}

.leaflet-popup-content {
  font-size: 14px;
}

.leaflet-popup-content b {
  font-size: 16px;
}

.leaflet-popup-content button {
  font-size: 14px;
}

@media (min-width: 1024px) {
  .leaflet-tooltip {
    font-size: 16px;
  }
  .leaflet-popup-content {
    font-size: 16px;
    min-width: 240px;
  }
  .leaflet-popup-content b {
    font-size: 18px;
  }
  .leaflet-popup-content button {
    font-size: 16px;
  }
}

/* Reserve link */
.reserve-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-normal) var(--transition-base);
}

.reserve-link:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

/* Back to map button */
.back-to-map-btn {
  position: sticky;
  top: var(--space-md);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: var(--font-size-base);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all var(--transition-normal) var(--transition-base);
}

.back-to-map-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.back-to-map-btn:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .back-to-map-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Load More Button (deprecated - now using infinite scroll) */
.load-more-button:hover:not(:disabled) {
  background: #1e40af !important; /* Darker blue on hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.load-more-button:active:not(:disabled) {
  transform: translateY(0);
}

/* Infinite Scroll - Smooth card entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Apply smooth entrance to event cards in search results */
.event-card {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

/* Stagger animation for consecutive cards (adds progressive delay) */
.event-card:nth-child(1) { animation-delay: 0s; }
.event-card:nth-child(2) { animation-delay: 0.05s; }
.event-card:nth-child(3) { animation-delay: 0.1s; }
.event-card:nth-child(4) { animation-delay: 0.15s; }
.event-card:nth-child(5) { animation-delay: 0.2s; }
.event-card:nth-child(6) { animation-delay: 0.25s; }
.event-card:nth-child(7) { animation-delay: 0.3s; }
.event-card:nth-child(8) { animation-delay: 0.35s; }
.event-card:nth-child(9) { animation-delay: 0.4s; }
.event-card:nth-child(10) { animation-delay: 0.45s; }

/* For cards beyond 10, use simple fade without delay to avoid lag */
.event-card:nth-child(n+11) {
  animation: fadeIn 0.4s ease-out;
  animation-delay: 0s;
}

/* ============================================
   EVENT PAGE STYLES
   ============================================ */

.event-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.event-page .back-button {
  background: none;
  border: none;
  color: #0066CC;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
}

.event-page .back-button:hover {
  text-decoration: underline;
}

.event-header {
  margin-bottom: 24px;
}

.event-header .event-title {
  font-size: 24px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 4px 0;
}

.event-header .event-library {
  font-size: 16px;
  font-weight: 500;
  color: #666666;
  margin: 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #E5E5E5;
}

.event-session {
  margin-bottom: 24px;
}

.session-details {
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 16px;
  color: #1A1A1A;
}

.detail-icon {
  width: 24px;
  text-align: center;
}

.detail-row .address {
  font-size: 14px;
  color: #666666;
  margin-top: 2px;
}

.reminder-button {
  width: 100%;
  padding: 12px 24px;
  background: #0066CC;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.reminder-button:hover {
  background: #0052A3;
}

.reminder-button.active {
  background: #28A745;
}

.event-about {
  margin-bottom: 24px;
}

.event-description {
  font-size: 15px;
  color: #333333;
  line-height: 1.6;
  margin: 0;
}

.event-discussion {
  margin-top: 32px;
}

.discussion-stats {
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  margin: 0 0 16px 0;
}

.comment-input-placeholder {
  background: #F8F9FA;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.comment-input-placeholder p {
  color: #666666;
  margin: 0 0 12px 0;
}

.signin-button {
  padding: 8px 16px;
  background: white;
  border: 1px solid #0066CC;
  color: #0066CC;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.signin-button:hover {
  background: #0066CC;
  color: white;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: #666666;
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.empty-title {
  font-size: 16px;
  font-weight: 500;
  color: #1A1A1A;
  margin: 0 0 8px 0;
}

.empty-body {
  font-size: 14px;
  margin: 0;
}

/* Comments */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment {
  background: white;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  padding: 16px;
}

.comment--ai-helper {
  background: linear-gradient(135deg, #F8F4FF 0%, #F0EBFF 100%);
  border-left: 3px solid #8B5CF6;
  position: relative;
}

.comment--ai-helper::before {
  content: '🤖';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
}

.comment--deleted .comment-body {
  color: #9CA3AF;
  font-style: italic;
}

.comment--reply {
  margin-left: 24px;
  margin-top: 12px;
  border-left: 2px solid #E5E5E5;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 500;
  color: #1A1A1A;
}

.ai-badge {
  font-size: 11px;
  background: #8B5CF6;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
}

.comment-time {
  font-size: 13px;
  color: #888888;
}

.comment-body {
  font-size: 15px;
  color: #1A1A1A;
  line-height: 1.5;
  margin-bottom: 12px;
}

.comment-signature {
  color: #6B7280;
  font-style: italic;
  font-size: 14px;
  margin-top: 12px;
}

.comment-actions {
  display: flex;
  gap: 16px;
}

.comment-actions button {
  background: none;
  border: none;
  color: #666666;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

.comment-actions button:hover {
  color: #0066CC;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1F2937;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: toast-in 0.2s ease-out;
  z-index: 1000;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Permalink highlight */
.comment--highlighted {
  background: #FEF3C7;
  animation: highlight-fade 2s ease-out forwards;
}

@keyframes highlight-fade {
  0% { background: #FEF3C7; }
  100% { background: transparent; }
}

/* Loading skeleton */
.event-page.loading {
  padding: 24px 16px;
}

.skeleton-header {
  height: 80px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s infinite;
  border-radius: 8px;
  margin-bottom: 24px;
}

.skeleton-body {
  height: 200px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Error state */
.event-page.error {
  text-align: center;
  padding: 48px 16px;
}

.error-message h2 {
  color: #1A1A1A;
  margin: 0 0 8px 0;
}

.error-message p {
  color: #666666;
  margin: 0 0 16px 0;
}

.error-message button {
  padding: 10px 20px;
  background: #0066CC;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
