/* ============================================
   Theatre Concierge - Embedded in Experience
   ============================================ */

/* ============================================
   Greeting Scene - Two Path Options
   ============================================ */
 
   .mse-greeting-options {
    display: flex;
    flex-direction: row;
    gap: 0.875rem;
    margin-top: 2rem;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.mse-option-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.875rem;
  cursor: pointer;
  transition: all 0.3s var(--mse-ease);
  text-align: left;
  color: var(--mse-text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mse-option-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 168, 85, 0.3);
  transform: translateX(4px);
}

.mse-option-card:hover .mse-option-icon {
  background: rgba(212, 168, 85, 0.2);
  border-color: var(--mse-gold);
}

.mse-option-card:hover .mse-option-arrow {
  color: var(--mse-gold);
  transform: translateX(4px);
}

.mse-option-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 85, 0.1);
  border: 1px solid rgba(212, 168, 85, 0.3);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s var(--mse-ease);
}

.mse-option-icon .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--mse-gold);
}

.mse-option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.mse-option-title {
  font-family: var(--mse-font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mse-text-primary);
}

.mse-option-desc {
  font-size: 0.75rem;
  color: var(--mse-text-secondary);
}

.mse-option-arrow {
  font-size: 1.125rem;
  color: var(--mse-text-muted);
  transition: all 0.3s var(--mse-ease);
}

/* Chat button in recommendations footer */
.mse-btn-chat {
  gap: 0.5rem;
}

.mse-btn-chat .material-symbols-outlined {
  font-size: 1rem;
}

/* ============================================
   Concierge Scene - Embedded in Experience
   ============================================ */
.mse-scene-concierge .mse-scene-inner {
  position: relative;
  width: 80vw;
  height: 92vh;
  max-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 0;
}

/* ============================================
   Concierge Header
   ============================================ */
   .mse-scene-inner.mse-concierge-inner {
    background: transparent;
    border: transparent;
}
.mse-concierge-header {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  flex-shrink: 0;
  margin: 35px 0 0 0;
}

.mse-concierge-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.mse-concierge-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(212, 168, 85, 0.2);
}

.mse-concierge-icon .material-symbols-outlined {
  font-size: 0.875rem;
  color: var(--mse-bg-dark);
}

.mse-concierge-icon .mse-concierge-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mse-concierge-title-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mse-concierge-title {
  font-family: var(--mse-font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mse-text-primary);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
}

.mse-concierge-status {
  font-size: 0.5625rem;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mse-concierge-status::before {
  content: '';
  width: 4px;
  height: 4px;
  background: #4ade80;
  border-radius: 50%;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   Conversation Area
   ============================================ */
.mse-concierge-conversation {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--mse-gold-dim) transparent;
  width: 100%;
}

.mse-concierge-conversation::-webkit-scrollbar {
  width: 3px;
}

.mse-concierge-conversation::-webkit-scrollbar-track {
  background: transparent;
}

.mse-concierge-conversation::-webkit-scrollbar-thumb {
  background: var(--mse-gold-dim);
  border-radius: 2px;
}

/* ============================================
   Welcome / Greeting
   ============================================ */
.mse-concierge-welcome {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  padding: 0.5rem 0;
  animation: concierge-fade-in 0.6s var(--mse-ease) forwards;
}

.mse-concierge-welcome.mse-hidden {
  display: none;
}

@keyframes concierge-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mse-concierge-avatar {
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 168, 85, 0.15), rgba(212, 168, 85, 0.05));
  border: 1px solid var(--mse-gold-dim);
  border-radius: 50%;
}

@keyframes concierge-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 168, 85, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(212, 168, 85, 0);
  }
}

.mse-concierge-avatar .material-symbols-outlined {
  font-size: 0.875rem;
  color: var(--mse-gold);
}

.mse-concierge-greeting {
  font-family: var(--mse-font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--mse-text-secondary);
  line-height: 1.5;
  max-width: 100%;
}

.mse-concierge-greeting strong,
.mse-concierge-greeting b {
  color: var(--mse-gold);
  font-weight: 600;
}

/* ============================================
   Messages
   ============================================ */
.mse-concierge-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mse-message {
  display: flex;
  gap: 0.5rem;
  animation: message-in 0.3s var(--mse-ease) forwards;
  opacity: 0;
  width: 100%;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* User Messages */
.mse-message-user {
  flex-direction: row-reverse;
  justify-content: flex-start;
  margin-left: auto;
}

.mse-message-user .mse-message-content {
  background: linear-gradient(135deg, rgba(212, 168, 85, 0.15), rgba(212, 168, 85, 0.08));
  border: 1px solid var(--mse-gold-dim);
  border-radius: 0.75rem 0.75rem 0 0.75rem;
  color: var(--mse-gold-light);
  text-align: right;
  font-size: 16px;
  margin-left: auto;
}

/* Assistant Messages */
.mse-message-assistant {
  flex-direction: row;
  align-items: flex-start;
}

.mse-message-assistant .mse-message-avatar {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 85, 0.1);
  border: 1px solid rgba(212, 168, 85, 0.3);
  border-radius: 50%;
  margin-top: 0.25rem;
}

.mse-message-assistant .mse-message-avatar .material-symbols-outlined {
  font-size: 0.75rem;
  color: var(--mse-gold);
}

.mse-message-assistant .mse-message-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0.75rem 0.75rem 0.75rem;
  text-align: left;
  font-size: 16px;
}

.mse-message-content {
  padding: 0.75rem 1rem;
  font-size: 16px;
  line-height: 1.5;
  color: var(--mse-text-secondary);
  max-width: 90%;
  text-align: left;
}

.mse-message-content p {
  margin: 0 0 0.5rem 0;
  font-size: inherit;
}

.mse-message-content p:last-child {
  margin-bottom: 0;
}

.mse-message-content strong,
.mse-message-content b {
  color: var(--mse-gold);
  font-weight: 600;
}

.mse-message-content a {
  color: var(--mse-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.mse-message-content a:hover {
  color: var(--mse-gold);
}

/* Play Card in Message */
.mse-message-play {
  margin: 0.75rem 0;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 168, 85, 0.3);
  border-radius: 0.5rem;
  position: relative;
}

/* Divider between multiple plays */
.mse-message-play + .mse-message-play {
  margin-top: 1rem;
  padding-top: 1rem;
}

.mse-message-play + .mse-message-play::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 85, 0.4), transparent);
}

.mse-message-play-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--mse-gold);
  margin-bottom: 0.375rem;
}

.mse-message-play-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--mse-text-secondary);
  margin-bottom: 0.375rem;
}

.mse-message-play-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mse-message-play-meta .material-symbols-outlined {
  font-size: 0.875rem;
  color: var(--mse-gold-dim);
}

/* Play description in message */
.mse-message-play-desc {
  font-size: 0.875rem;
  color: var(--mse-text-secondary);
  line-height: 1.5;
  margin-top: 0.375rem;
}

/* Play link button */
.mse-message-play-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(212, 168, 85, 0.15);
  border: 1px solid var(--mse-gold-dim);
  border-radius: 1rem;
  color: var(--mse-gold);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mse-message-play-link:hover {
  background: rgba(212, 168, 85, 0.25);
  border-color: var(--mse-gold);
}

.mse-message-play-link .material-symbols-outlined {
  font-size: 0.875rem;
}

/* Multiple plays container */
.mse-message-plays {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Horizontal divider between play sections in text */
.mse-play-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 85, 0.4), transparent);
  margin: 1.25rem 0;
  border: none;
}

/* Play title in message text */
.mse-play-title-text {
  color: var(--mse-gold);
  font-size: 16px;
  font-weight: 600;
  display: inline;
}

/* Inline link styling (actor names, play titles, etc.) */
.mse-inline-link {
  color: var(--mse-gold);
  text-decoration: none;
  border-bottom: 1px dotted rgba(212, 168, 85, 0.5);
  transition: all 0.2s ease;
  padding: 0 0.125rem;
  margin: 0 -0.125rem;
  border-radius: 2px;
}

.mse-inline-link:hover {
  color: var(--mse-gold-light);
  background: rgba(212, 168, 85, 0.15);
  border-bottom-color: var(--mse-gold);
  border-bottom-style: solid;
}

/* ============================================
   Typing Indicator
   ============================================ */
.mse-concierge-typing {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0;
}

.mse-concierge-typing.mse-visible {
  display: flex;
}

.mse-typing-avatar {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 85, 0.1);
  border: 1px solid rgba(212, 168, 85, 0.3);
  border-radius: 50%;
}

.mse-typing-avatar .material-symbols-outlined {
  font-size: 0.625rem;
  color: var(--mse-gold);
}

.mse-typing-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0.375rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.625rem;
}

.mse-typing-indicator span {
  width: 4px;
  height: 4px;
  background: var(--mse-gold-dim);
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.mse-typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.mse-typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ============================================
   Bottom bar (suggestions + input)
   ============================================ */
.mse-concierge-bottom {
  flex-shrink: 0;
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

/* ============================================
   Suggestions
   ============================================ */
.mse-concierge-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  align-self: stretch;
  padding: 0;
  flex-shrink: 0;
  margin: 0;
}

.mse-concierge-suggestions:empty {
  display: none;
}

.mse-suggestion-chip {
  padding: 0.5rem 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  color: var(--mse-text-secondary);
  font-family: var(--mse-font-body);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s var(--mse-ease);
  white-space: nowrap;
  font-weight: 400;
  text-transform: uppercase;
}

.mse-suggestion-chip:hover {
  background: rgba(212, 168, 85, 0.12);
  border-color: var(--mse-gold-dim);
  color: var(--mse-gold-light);
}

/* ============================================
   Input Area
   ============================================ */
.mse-concierge-input-area {
  position: static;
  width: 100%;
  align-self: stretch;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border-top: none;
}

.mse-concierge-ai-notice {
  margin: 6px 0 0;
  font-size: 11px;
  opacity: 0.6;
  text-align: center;
}

.mse-concierge-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mse-concierge-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 168, 85, 0.3);
  border-radius: 2rem;
  padding: 0.25rem 0.375rem 0.25rem 1rem;
  transition: border-color 0.3s var(--mse-ease), box-shadow 0.3s var(--mse-ease);
}

.mse-concierge-input-wrapper:focus-within {
  border-color: var(--mse-gold-dim);
  box-shadow: 0 0 10px rgba(212, 168, 85, 0.1);
}

.mse-concierge-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mse-font-body);
  font-size: 0.875rem;
  color: var(--mse-text-primary);
  padding: 0.5rem 0;
}

.mse-concierge-input::placeholder {
  color: var(--mse-text-muted);
}

.mse-concierge-send {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mse-gold-dim), var(--mse-gold));
  border: none;
  border-radius: 50%;
  color: var(--mse-bg-dark);
  cursor: pointer;
  transition: all 0.3s var(--mse-ease);
  flex-shrink: 0;
}

.mse-concierge-send:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(212, 168, 85, 0.3);
}

.mse-concierge-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.mse-concierge-send .material-symbols-outlined {
  font-size: 1rem;
}

/* ============================================
   Concierge Footer - Centered Button
   ============================================ */
/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1024px) {
  .mse-scene-concierge .mse-scene-inner {
    width: 90%;
    max-width: 600px;
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
  .mse-greeting-options {
    max-width: 100%;
  }
  
  .mse-option-card {
    padding: 0.875rem 1rem;
  }
  
  .mse-option-icon {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .mse-option-icon .material-symbols-outlined {
    font-size: 1.125rem;
  }
  
  /* Full-screen concierge on mobile */
  .mse-scene-concierge .mse-scene-inner {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  .mse-concierge-header {
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(26, 19, 15, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mse-concierge-conversation {
    padding: 0.75rem 1rem;
    min-height: 0;
  }
  
  .mse-concierge-welcome {
    padding: 0.5rem 0;
  }
  
  .mse-concierge-avatar {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
  }
  
  .mse-concierge-avatar .material-symbols-outlined {
    font-size: 0.875rem;
  }
  
  .mse-concierge-greeting {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .mse-message {
    margin-bottom: 0.75rem;
  }
  
  .mse-message-content {
    max-width: 88%;
    font-size: 14px;
    padding: 0.625rem 0.875rem;
    line-height: 1.5;
  }
  
  .mse-message-user .mse-message-content {
    max-width: 85%;
  }
  
  .mse-concierge-input {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 0.75rem 1rem;
  }
  
  .mse-concierge-bottom {
    padding: 0.625rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(26, 19, 15, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mse-concierge-suggestions {
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
  }
  
  .mse-suggestion-chip {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .mse-concierge-input-area {
    position: static;
    width: 100%;
    padding: 0;
    background: transparent;
    border-top: none;
    z-index: auto;
  }
  
  .mse-concierge-form {
    max-width: 100%;
  }
  
  .mse-concierge-input-wrapper {
    border-radius: 1.5rem;
    min-height: 3rem;
  }
  
  .mse-concierge-submit {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .mse-concierge-submit .material-symbols-outlined {
    font-size: 1.125rem;
  }
  
  /* Play dividers in chat */
  .mse-play-divider {
    margin: 0.75rem 0;
  }
  
  .mse-play-title-text {
    font-size: 14px;
  }
  
  /* Footer button - outside chat box */
}

/* ============================================
   Responsive - Small Mobile
   ============================================ */
@media (max-width: 480px) {
  .mse-option-card {
    padding: 0.75rem 0.875rem;
    gap: 0.625rem;
  }
  
  .mse-option-title {
    font-size: 0.8125rem;
  }
  
  .mse-option-desc {
    font-size: 0.6875rem;
  }
  
  .mse-concierge-header {
    padding: 0.5rem 0.75rem;
  }
  
  .mse-concierge-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .mse-concierge-icon .material-symbols-outlined {
    font-size: 0.875rem;
  }
  
  .mse-concierge-icon .mse-concierge-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .mse-concierge-title {
    font-size: 0.8125rem;
  }
  
  .mse-concierge-bottom {
    padding: 0.5rem 0.75rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }
  
  .mse-concierge-suggestions {
    padding: 0.375rem 0.75rem 0.5rem;
    gap: 0.375rem;
  }
  
  .mse-suggestion-chip {
    font-size: 0.6875rem;
    padding: 0.4375rem 0.75rem;
  }
  
  .mse-message-content {
    font-size: 13px;
    padding: 0.5rem 0.75rem;
  }
  
  .mse-concierge-greeting {
    font-size: 13px;
  }
  
  .mse-concierge-conversation {
    padding: 0.5rem 0.75rem;
  }
}

/* ============================================
   iOS Safe Areas
   ============================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .mse-scene-footer {
      padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .mse-option-card,
  .mse-message {
    animation: none;
    transition: opacity 0.2s;
  }
  
  .mse-concierge-avatar {
    animation: none;
  }
  
  .mse-concierge-status::before {
    animation: none;
  }
}
