/* ============================================
   TSINGPU Cultural Curators — 暖米白泡泡风
   ============================================ */

:root {
  /* Brand Colors - Porcelain Elegance Theme */
  --primary-navy: #1B2A4A;
  --secondary-sage: #8BA888;
  --tertiary-earth: #C4956A;
  --metallic-gold: #9C7C4C;

  /* Neutrals */
  --bg-paper: #FFFDF7;
  --bg-light-gray: #F5F0E8;
  --text-main: #2D2D2D;
  --text-muted: #5A5A5A;
  --border-line: rgba(27, 42, 74, 0.1);

  /* Utility */
  --white: #FFFFFF;
  --shadow: 0 8px 32px rgba(27, 42, 74, 0.06);
  --radius: 2px;
  --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.curators-bubble-section {
  position: relative;
  padding: 140px 6vw;
  background: var(--bg-paper);
  overflow: hidden;
}

/* Subtle texture */
.curators-bubble-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 20% 10%, rgba(139,168,136,0.03), transparent),
    radial-gradient(ellipse 400px 200px at 70% 30%, rgba(139,168,136,0.02), transparent),
    radial-gradient(ellipse 800px 400px at 50% 70%, rgba(139,168,136,0.015), transparent);
  pointer-events: none;
}

/* Section Header */
.curators-header {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 64px;
}

.curators-header .label {
  color: var(--metallic-gold);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.7;
}

.curators-header h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 52px);
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.curators-header h2 em {
  font-style: italic;
  color: var(--primary-navy);
}

.header-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 560px;
  margin: 20px auto 0;
  line-height: 1.7;
}

/* Category Intro Cards */
.category-intros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 64px;
  position: relative;
  z-index: 2;
}

.category-intro-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-line);
  padding: 36px 28px;
  text-align: left;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: var(--shadow);
}

.category-intro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(27,42,74,0.08);
}

.card-accent-line {
  width: 40px;
  height: 2px;
  margin-bottom: 20px;
}

.category-intro-card h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.category-intro-card p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .category-intros {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Bubble Container */
.bubble-container {
  position: relative;
  width: 100%;
  height: 600px;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2;
}

/* Curator Bubble */
.curator-bubble {
  position: absolute;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(27,42,74,0.08);
  transition: box-shadow 0.3s ease;
  user-select: none;
}

.curator-bubble:hover {
  box-shadow: 0 8px 32px rgba(27,42,74,0.15);
  z-index: 10;
}

/* Bubble type colors */
.bubble-type-architect {
  background: linear-gradient(135deg, rgba(27,42,74,0.12), rgba(27,42,74,0.05));
  border: 1.5px solid rgba(27,42,74,0.25);
}

.bubble-type-curator {
  background: linear-gradient(135deg, rgba(156,124,76,0.12), rgba(156,124,76,0.05));
  border: 1.5px solid rgba(156,124,76,0.25);
}

.bubble-type-heritage {
  background: linear-gradient(135deg, rgba(139,168,136,0.12), rgba(139,168,136,0.05));
  border: 1.5px solid rgba(139,168,136,0.25);
}

.bubble-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.bubble-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.bubble-name {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Added to itinerary state */
.added-to-itinerary {
  box-shadow: 0 0 0 2px var(--metallic-gold);
}

/* Overlay */
.curator-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,42,74,0.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 100;
}

.curator-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Detail Panel */
.curator-detail-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  background: var(--bg-paper);
  border: 1px solid var(--border-line);
  padding: 40px;
  width: 460px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(27,42,74,0.12);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 101;
  border-radius: 2px;
}

.curator-detail-panel.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.panel-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 4px;
  line-height: 1;
}

.panel-close:hover {
  color: var(--text-main);
}

.panel-type-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 1px;
  margin-bottom: 16px;
  font-weight: 500;
}

.curator-detail-panel h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.panel-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.panel-bio {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.panel-add-btn {
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-line);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 1px;
}

.panel-add-btn.add {
  color: var(--primary-navy);
  border-color: rgba(27,42,74,0.3);
}

.panel-add-btn.add:hover {
  background: var(--primary-navy);
  color: var(--white);
  border-color: var(--primary-navy);
}

.panel-add-btn.added {
  color: var(--metallic-gold);
  border-color: rgba(156,124,76,0.4);
  cursor: default;
}

.panel-cta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(27,42,74,0.2);
  padding-bottom: 2px;
  transition: all 0.4s ease;
  margin-left: 12px;
}

.panel-cta:hover {
  border-bottom-color: var(--primary-navy);
}

/* Itinerary Bar */
.itinerary-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-paper);
  border-top: 1px solid var(--border-line);
  padding: 16px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -4px 24px rgba(27,42,74,0.06);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 90;
}

.itinerary-bar.visible {
  transform: translateY(0);
}

.itinerary-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.itinerary-bar-icon {
  font-size: 20px;
}

.itinerary-bar-count {
  font-size: 13px;
  color: var(--text-muted);
}

.itinerary-bar-count strong {
  color: var(--text-main);
  font-weight: 600;
}

.itinerary-bar-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
  flex: 1;
}

.itinerary-bar-item {
  font-size: 11px;
  background: var(--bg-warm);
  border: 1px solid var(--border-line);
  padding: 4px 10px;
  border-radius: 1px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.itinerary-bar-item .remove-btn {
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.itinerary-bar-item .remove-btn:hover {
  color: var(--text-main);
}

.itinerary-bar-submit {
  padding: 10px 24px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--primary-navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: 1px;
  flex-shrink: 0;
}

.itinerary-bar-submit:hover:not(:disabled) {
  background: var(--accent-light);
}

.itinerary-bar-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Itinerary Modal */
.itinerary-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,42,74,0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 200;
}

.itinerary-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.itinerary-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  background: var(--bg-paper);
  border: 1px solid var(--border-line);
  padding: 40px;
  width: 520px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 201;
  border-radius: 2px;
}

.itinerary-modal.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.itinerary-modal h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.itinerary-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.itinerary-modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-paper);
  border: 1px solid var(--border-line);
}

.item-icon {
  font-size: 20px;
  width: 36px;
  text-align: center;
}

.item-info {
  flex: 1;
}

.item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.item-title {
  font-size: 12px;
  color: var(--text-muted);
}

.remove-item-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  transition: color 0.3s ease;
}

.remove-item-btn:hover {
  color: var(--text-main);
}

.itinerary-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-close {
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-line);
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-close:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}

.btn-submit {
  padding: 10px 24px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--primary-navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-submit:hover {
  background: var(--accent-light);
}

.bubble-prompt {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  pointer-events: none;
  width: 100%;
  max-width: 900px;
  padding: 0 6vw;
}

.bubble-prompt-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.bubble-prompt-sub {
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* Mobile */
@media (max-width: 900px) {
  .bubble-container {
    height: 800px;
  }

  .bubble-prompt {
    max-width: 100%;
    padding: 0 24px;
  }

  .itinerary-bar {
    flex-direction: column;
    padding: 12px 24px;
    gap: 10px;
  }

  .itinerary-bar-list {
    max-width: 100%;
  }

  .curator-detail-panel,
  .itinerary-modal {
    padding: 28px;
    width: 90vw;
  }
}
