/* CSS Variables - defaults, overridden by theme injection */
.festapp-widget {
  /* Anchor rem calculations - prevents host site font-size from affecting widget */
  font-size: 16px;
  /* Establish stacking context for z-index isolation */
  isolation: isolate;

  /* Colors - using more modern palette */
  --festapp-primary: #F14E38;
  --festapp-primary-fg: #FFFFFF;
  --festapp-alt-1: #CD422F;
  --festapp-alt-2: #78271C;
  --festapp-alt-3: #A83526;

  /* Base colors - sophisticated neutrals */
  --festapp-bg: #FFFFFF;
  --festapp-fg: oklch(0.145 0 0);
  --festapp-muted: oklch(0.656 0 0);
  --festapp-muted-bg: oklch(0.97 0 0);
  --festapp-border: oklch(0.922 0 0);
  --festapp-radius: 1rem;
  --festapp-radius-sm: 0.5rem;
  --festapp-radius-lg: 1.5rem;
  
  /* Shadow color - allows theming of shadow opacity/color */
  --festapp-shadow-color: rgb(0 0 0 / 0.1);

  /* Shadows - multi-layered for depth, inspired by high-end design systems */
  --festapp-shadow-sm: 0 1px 2px 0 var(--festapp-shadow-color);
  --festapp-shadow: 0 1px 3px 0 var(--festapp-shadow-color), 0 1px 2px -1px var(--festapp-shadow-color);
  --festapp-shadow-md: 0 4px 6px -1px var(--festapp-shadow-color), 0 2px 4px -2px var(--festapp-shadow-color);
  --festapp-shadow-lg: 0 10px 15px -3px var(--festapp-shadow-color), 0 4px 6px -4px var(--festapp-shadow-color);
  --festapp-shadow-xl: 0 20px 25px -5px var(--festapp-shadow-color), 0 8px 10px -6px var(--festapp-shadow-color);

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--festapp-fg);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset for widget container */
.festapp-widget *,
.festapp-widget *::before,
.festapp-widget *::after {
  box-sizing: border-box;
  margin: 0;
}

.festapp-widget button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.festapp-widget button:focus-visible {
  outline: 2px solid var(--festapp-primary);
  outline-offset: 2px;
}

.festapp-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Loading & Error States */
.festapp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.festapp-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--festapp-border);
  border-top-color: var(--festapp-primary);
  border-radius: 50%;
  animation: festapp-spin 0.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

.festapp-error {
  padding: 48px 24px;
  text-align: center;
  color: var(--festapp-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* Skeleton */
.festapp-skeleton {
  background: linear-gradient(90deg, var(--festapp-muted-bg) 25%, oklch(0.94 0 0) 50%, var(--festapp-muted-bg) 75%);
  background-size: 200% 100%;
  animation: festapp-shimmer 2s infinite linear;
  border-radius: var(--festapp-radius-sm);
}

@keyframes festapp-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton fill - takes full size of parent */
.festapp-skeleton-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Skeleton fill inside specific containers - match component border-radius */
.festapp-artist-card-image .festapp-skeleton-fill {
  border-radius: var(--festapp-radius);
}

.festapp-artist-hero-image-container .festapp-skeleton-fill {
  border-radius: var(--festapp-radius-lg);
}

.festapp-event-hero-image-container .festapp-skeleton-fill {
  border-radius: var(--festapp-radius-lg);
}

.festapp-skeleton-circle {
  border-radius: 50%;
}

/* ImageWithSkeleton component styles */
.festapp-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.festapp-image-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--festapp-muted-bg) 25%, oklch(0.94 0 0) 50%, var(--festapp-muted-bg) 75%);
  background-size: 200% 100%;
  animation: festapp-shimmer 2s infinite linear;
  border-radius: inherit;
}

.festapp-image-reveal {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.festapp-image-reveal.loaded {
  opacity: 1;
}

.festapp-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--festapp-muted-bg);
  color: var(--festapp-muted);
  border-radius: inherit;
}

/* UI Control Skeletons */
.festapp-day-selector-skeleton {
  margin-bottom: 0;
}

.festapp-day-btn-skeleton {
  width: 90px;
  height: 46px;
  border-radius: var(--festapp-radius);
}

.festapp-filter-dropdown-skeleton {
  width: 120px;
  height: 46px;
  border-radius: var(--festapp-radius);
}

.festapp-search-skeleton {
  margin-bottom: 0;
}

.festapp-search-input-skeleton {
  width: 100%;
  height: 48px;
  border-radius: var(--festapp-radius);
}

.festapp-tabs-skeleton {
  border-bottom: none;
  margin-bottom: 0;
}

/* Schedule Item Skeleton - match grid layout */
.festapp-schedule-item-skeleton {
  min-height: 72px;
  pointer-events: none;
}

/* Artist Detail Skeleton Media */
.festapp-artist-detail-skeleton .festapp-artist-media-skeleton {
  width: 100%;
  max-width: 400px;
  height: 160px;
  border-radius: var(--festapp-radius);
}

@media (max-width: 640px) {
  .festapp-artist-detail-skeleton .festapp-artist-media-skeleton {
    display: none;
  }
}

/* Event Detail Skeleton */
.festapp-event-performers-skeleton {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.festapp-event-performer-chip-skeleton {
  width: 120px;
  height: 44px;
  border-radius: 2000px;
}

/* Buttons */
.festapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--festapp-radius);
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.festapp-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.festapp-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(1);
}

.festapp-btn-primary {
  background: var(--festapp-primary);
  color: var(--festapp-primary-fg);
  box-shadow: 0 4px 12px oklch(from var(--festapp-primary) l c h / 0.25);
}

.festapp-btn-primary:hover:not(:disabled) {
  background: var(--festapp-alt-1);
  box-shadow: 0 6px 16px oklch(from var(--festapp-primary) l c h / 0.35);
}

.festapp-btn-secondary {
  background: var(--festapp-bg);
  color: var(--festapp-fg);
  border: 1px solid var(--festapp-border);
  box-shadow: var(--festapp-shadow-sm);
}

.festapp-btn-secondary:hover:not(:disabled) {
  background: var(--festapp-muted-bg);
  border-color: var(--festapp-muted);
}

.festapp-btn-ghost {
  color: var(--festapp-muted);
}

.festapp-btn-ghost:hover:not(:disabled) {
  background: var(--festapp-muted-bg);
  color: var(--festapp-fg);
}

.festapp-btn-sm { padding: 8px 14px; font-size: 0.8125rem; }
.festapp-btn-md { padding: 10px 18px; font-size: 0.875rem; }
.festapp-btn-lg { padding: 14px 28px; font-size: 0.9375rem; }

/* Back Button */
.festapp-back-btn {
  display: inline-flex;
  margin-bottom: 32px;
}

.festapp-back-btn-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  color: var(--festapp-muted);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2000px;
  background: var(--festapp-muted-bg);
  border: 1px solid transparent;
}

.festapp-back-btn:hover .festapp-back-btn-inner {
  color: var(--festapp-fg);
  background: var(--festapp-bg);
  border-color: var(--festapp-border);
  transform: translateX(-4px);
  box-shadow: var(--festapp-shadow-sm);
}

/* Tabs */
.festapp-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--festapp-border);
  margin-bottom: 32px;
}

.festapp-tab {
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  color: var(--festapp-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  letter-spacing: -0.01em;
}

.festapp-tab:hover {
  color: var(--festapp-fg);
}

.festapp-tab-active {
  color: var(--festapp-primary);
}

.festapp-tab-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--festapp-primary);
  border-radius: 2px;
}

/* Day Selector */
.festapp-day-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.festapp-widget .festapp-day-btn {
  padding: 12px 18px;
  height: 46px;
  background: var(--festapp-bg);
  border: 1px solid oklch(0.88 0 0);
  border-radius: var(--festapp-radius);
  color: var(--festapp-fg);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--festapp-shadow-md);
}

.festapp-widget .festapp-day-btn:hover {
  border-color: var(--festapp-muted);
  background: var(--festapp-muted-bg);
  transform: translateY(-1px);
}

.festapp-widget .festapp-day-btn:active {
  transform: translateY(0) scale(0.97);
}

.festapp-widget .festapp-day-btn-active {
  background: var(--festapp-fg);
  color: var(--festapp-bg);
  border-color: var(--festapp-fg);
  box-shadow: 0 4px 12px var(--festapp-shadow-color);
}

.festapp-widget .festapp-day-btn-active:hover {
  background: var(--festapp-fg);
}

/* Pills */
.festapp-pill {
  display: inline-flex;
  padding: 6px 14px;
  background: var(--festapp-muted-bg);
  border-radius: 2000px;
  color: var(--festapp-fg);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

button.festapp-pill:hover {
  background: var(--festapp-bg);
  border-color: var(--festapp-border);
  box-shadow: var(--festapp-shadow-sm);
  transform: translateY(-1px);
}

.festapp-pill-active {
  background: var(--festapp-primary);
  color: var(--festapp-primary-fg);
  box-shadow: 0 4px 12px oklch(from var(--festapp-primary) l c h / 0.2);
}

/* Search Input */
.festapp-search {
  position: relative;
  margin-bottom: 32px;
}

.festapp-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--festapp-muted);
  pointer-events: none;
}

.festapp-search-input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  background: var(--festapp-muted-bg);
  border: 1px solid transparent;
  border-radius: var(--festapp-radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.festapp-search-input:focus {
  outline: none;
  border-color: var(--festapp-primary);
  background: var(--festapp-bg);
  box-shadow: 0 0 0 4px oklch(from var(--festapp-primary) l c h / 0.1), var(--festapp-shadow-md);
}

.festapp-search-input::placeholder {
  color: var(--festapp-muted);
  font-weight: 400;
}

.festapp-search-input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.festapp-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--festapp-muted);
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s;
}

.festapp-search-clear:hover {
  background: var(--festapp-border);
  color: var(--festapp-fg);
}

/* Filter Dropdown */
.festapp-filter-dropdown {
  position: relative;
}

.festapp-filter-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  height: 46px;
  background: var(--festapp-bg);
  border: 1px solid oklch(0.88 0 0);
  border-radius: var(--festapp-radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--festapp-fg);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--festapp-shadow-md);
}

.festapp-filter-dropdown-trigger:hover {
  border-color: var(--festapp-muted);
  background: var(--festapp-muted-bg);
  transform: translateY(-1px);
}

.festapp-filter-dropdown-trigger-active {
  border-color: var(--festapp-primary);
  box-shadow: 0 0 0 4px oklch(from var(--festapp-primary) l c h / 0.1);
}

.festapp-filter-dropdown-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  background: var(--festapp-primary);
  color: var(--festapp-primary-fg);
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 800;
}

.festapp-filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: min(320px, 95vw);
  max-width: min(400px, 95vw);
  max-height: 480px;
  background: var(--festapp-bg);
  border: 1px solid var(--festapp-border);
  border-radius: var(--festapp-radius);
  box-shadow: var(--festapp-shadow-xl);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: festapp-pop-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top left;
}

@keyframes festapp-pop-in {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.festapp-filter-dropdown-search {
  padding: 16px;
  border-bottom: 1px solid var(--festapp-border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--festapp-muted-bg);
}

.festapp-filter-dropdown-search-input {
  width: 100%;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--festapp-fg);
  outline: none;
}

.festapp-filter-dropdown-actions {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--festapp-border);
}

.festapp-filter-dropdown-action {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--festapp-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: var(--festapp-radius-sm);
  transition: all 0.2s;
}

.festapp-filter-dropdown-action:hover {
  background: oklch(from var(--festapp-primary) l c h / 0.1);
}

.festapp-filter-dropdown-options {
  overflow-y: auto;
  padding: 8px;
  max-height: 300px;
}

.festapp-filter-dropdown-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--festapp-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.festapp-filter-dropdown-option:hover {
  background: var(--festapp-muted-bg);
}

.festapp-filter-dropdown-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--festapp-border);
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.festapp-filter-dropdown-checkbox:checked {
  background: var(--festapp-primary);
  border-color: var(--festapp-primary);
}

.festapp-filter-dropdown-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.festapp-filter-dropdown-option-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--festapp-fg);
}

.festapp-filter-dropdown-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--festapp-muted);
  font-size: 0.875rem;
}

/* Day Dropdown */
.festapp-day-dropdown {
  position: relative;
}

.festapp-day-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  height: 46px;
  background: var(--festapp-bg);
  border: 1px solid oklch(0.88 0 0);
  border-radius: var(--festapp-radius);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 180px;
  justify-content: space-between;
  box-shadow: var(--festapp-shadow-md);
}

.festapp-day-dropdown-trigger:hover {
  border-color: var(--festapp-muted);
  background: var(--festapp-muted-bg);
}

.festapp-day-dropdown-trigger-active {
  border-color: var(--festapp-primary);
  box-shadow: 0 0 0 4px oklch(from var(--festapp-primary) l c h / 0.1);
}

.festapp-day-dropdown-trigger-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.festapp-day-dropdown-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--festapp-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.festapp-day-dropdown-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--festapp-fg);
  line-height: 1.2;
}

.festapp-day-dropdown-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--festapp-muted);
}

.festapp-day-dropdown-chevron-open {
  transform: rotate(180deg);
  color: var(--festapp-primary);
}

.festapp-day-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: min(240px, 95vw);
  max-width: min(320px, 95vw);
  background: var(--festapp-bg);
  border: 1px solid var(--festapp-border);
  border-radius: var(--festapp-radius);
  box-shadow: var(--festapp-shadow-xl);
  z-index: 100;
  overflow: hidden;
  animation: festapp-pop-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top left;
}

.festapp-day-dropdown-item {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--festapp-fg);
  transition: all 0.2s;
  border-bottom: 1px solid var(--festapp-border);
}

.festapp-day-dropdown-item:last-child {
  border-bottom: none;
}

.festapp-day-dropdown-item:hover {
  background: var(--festapp-muted-bg);
  color: var(--festapp-primary);
}

.festapp-day-dropdown-item-active {
  background: oklch(from var(--festapp-primary) l c h / 0.05);
  color: var(--festapp-primary);
}

/* Schedules Page */
.festapp-schedules-page {
  padding: 16px 0 48px;
}

.festapp-schedules-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.festapp-schedules-header .festapp-search {
  margin-bottom: 0;
}

.festapp-schedules-header .festapp-day-dropdown {
  margin-bottom: 0;
}

.festapp-schedules-header .festapp-tabs {
  margin-bottom: 0;
}

.festapp-schedules-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.festapp-schedules-loading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Artists Page */
.festapp-artists-page {
  padding: 16px 0 48px;
}

.festapp-artists-filters {
  margin-bottom: 40px;
}

.festapp-artists-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.festapp-artists-filter-row .festapp-day-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

/* Artists Grid */
.festapp-artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
}

/* Artist Card */
.festapp-artist-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--festapp-radius-lg);
  overflow: hidden;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--festapp-bg);
  position: relative;
}

.festapp-artist-card:hover {
  transform: translateY(-6px);
}

.festapp-artist-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--festapp-muted-bg);
  overflow: hidden;
  border-radius: var(--festapp-radius);
  margin-bottom: 16px;
  box-shadow: var(--festapp-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* iOS Safari < 15 fallback for missing aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
  .festapp-artist-card-image {
    height: 0;
    padding-top: 100%;
  }
}

.festapp-artist-card:hover .festapp-artist-card-image {
  box-shadow: var(--festapp-shadow-lg);
  border-radius: var(--festapp-radius-sm);
}

.festapp-artist-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.festapp-artist-card:hover .festapp-artist-card-image img {
  transform: scale(1.08);
}

/* Artist Card Image Container for ImageWithSkeleton */
.festapp-artist-card-image .festapp-image-container,
.festapp-artist-card-image .festapp-image-fallback {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.festapp-artist-card-image .festapp-image-reveal {
  border-radius: inherit;
}

.festapp-artist-card-content {
  padding: 4px 4px 12px;
}

.festapp-artist-card-name {
  margin: 0 0 4px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.festapp-artist-card-categories {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--festapp-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Artist/Event Detail */
.festapp-artist-detail-page,
.festapp-event-detail-page {
  padding-bottom: 64px;
}

.festapp-artist-detail {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.festapp-artist-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.festapp-artist-hero-media {
  display: flex;
  flex-direction: row;
  gap: 32px;
}

.festapp-event-detail {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.festapp-event-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.festapp-artist-hero-left {
  flex-shrink: 0;
  width: min(360px, 90vw);
}

.festapp-artist-hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.festapp-artist-hero-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.festapp-artist-hero-image-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--festapp-radius-lg);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  z-index: 1;
  pointer-events: none;
}

/* Artist Hero Image Container for ImageWithSkeleton */
.festapp-artist-hero-image-container .festapp-image-container,
.festapp-artist-hero-image-container .festapp-image-fallback {
  position: absolute;
  inset: 0;
  border-radius: var(--festapp-radius-lg);
}

.festapp-artist-hero-image-container .festapp-image-reveal {
  border-radius: var(--festapp-radius-lg);
  box-shadow: var(--festapp-shadow-xl);
}

.festapp-artist-hero-image-container .festapp-image-skeleton {
  border-radius: var(--festapp-radius-lg);
}

.festapp-artist-hero-image,
.festapp-event-hero-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--festapp-radius-lg);
  box-shadow: var(--festapp-shadow-xl);
}

.festapp-event-hero-image {
  max-width: 600px;
  aspect-ratio: 16/9;
}

.festapp-event-hero-image-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16/9;
}

/* Event Hero Image Container for ImageWithSkeleton */
.festapp-event-hero-image-container .festapp-image-container,
.festapp-event-hero-image-container .festapp-image-fallback {
  position: absolute;
  inset: 0;
  border-radius: var(--festapp-radius-lg);
}

.festapp-event-hero-image-container .festapp-image-reveal {
  border-radius: var(--festapp-radius-lg);
  box-shadow: var(--festapp-shadow-xl);
}

.festapp-event-hero-image-container .festapp-image-skeleton {
  border-radius: var(--festapp-radius-lg);
}

.festapp-event-hero-name {
  font-size: 2rem;
}

.festapp-artist-hero-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.festapp-artist-hero-name,
.festapp-event-hero-name {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--festapp-fg);
}

.festapp-artist-hero-categories,
.festapp-event-hero-categories {
  font-size: 1rem;
  font-weight: 600;
  color: var(--festapp-muted);
  letter-spacing: -0.01em;
}

.festapp-artist-hero-placeholder {
  width: min(360px, 90vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--festapp-muted-bg);
  border-radius: var(--festapp-radius-lg);
  color: var(--festapp-muted);
}

.festapp-event-hero-placeholder {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--festapp-muted-bg);
  border-radius: var(--festapp-radius-lg);
  color: var(--festapp-muted);
}

/* Media Toggle */
.festapp-media-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--festapp-muted-bg);
  border-radius: var(--festapp-radius);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--festapp-fg);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}

.festapp-media-toggle:hover {
  background: var(--festapp-border);
}

.festapp-media-toggle-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--festapp-muted);
}

.festapp-media-toggle-icon-expanded {
  transform: rotate(180deg);
}

.festapp-media-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  max-width: 600px;
}

/* Event Detail Loading */
.festapp-event-detail-loading {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.festapp-event-hero-skeleton {
  max-width: 600px;
  aspect-ratio: 16/9;
}

.festapp-artist-section,
.festapp-event-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.festapp-section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--festapp-fg);
}

.festapp-artist-bio,
.festapp-event-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--festapp-muted);
  max-width: 65ch;
  font-weight: 450;
}

/* Social Links */
.festapp-artist-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.festapp-artist-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--festapp-muted-bg);
  border-radius: 2000px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--festapp-fg);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.festapp-artist-link:hover {
  background: var(--festapp-bg);
  border-color: var(--festapp-border);
  box-shadow: var(--festapp-shadow-sm);
  transform: translateY(-2px);
}

.festapp-artist-link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Event Links */
.festapp-event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.festapp-event-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--festapp-muted-bg);
  border-radius: 2000px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--festapp-fg);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.festapp-event-link:hover {
  background: var(--festapp-bg);
  border-color: var(--festapp-border);
  box-shadow: var(--festapp-shadow-sm);
  transform: translateY(-2px);
}

.festapp-event-link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Custom Fields */
.festapp-custom-fields {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.festapp-custom-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.festapp-custom-field dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--festapp-muted);
}

.festapp-custom-field dd {
  font-size: 1rem;
  font-weight: 500;
  color: var(--festapp-fg);
}

.festapp-media-item {
  border-radius: var(--festapp-radius);
  overflow: hidden;
}

.festapp-spotify-embed {
  position: relative;
  border-radius: var(--festapp-radius);
  overflow: hidden;
}

.festapp-spotify-embed iframe {
  border-radius: var(--festapp-radius);
}

.festapp-youtube-embed {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--festapp-radius);
  box-shadow: var(--festapp-shadow-md);
  overflow: hidden;
}

.festapp-youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Schedules Table-like Layout */
.festapp-artist-schedules,
.festapp-event-schedules {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.festapp-artist-schedule-item,
.festapp-event-schedule-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--festapp-muted-bg);
  border-radius: var(--festapp-radius);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}


.festapp-artist-schedule-date,
.festapp-event-schedule-date {
  min-width: unset;
}

.festapp-artist-schedule-day,
.festapp-event-schedule-day {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--festapp-fg);
}

.festapp-artist-schedule-time,
.festapp-event-schedule-time {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--festapp-muted);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.festapp-artist-schedule-info,
.festapp-event-schedule-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.festapp-artist-schedule-place,
.festapp-event-schedule-place {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--festapp-fg);
}

.festapp-artist-schedule-event {
  color: var(--festapp-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  transition: all 0.2s;
}

.festapp-artist-schedule-event:hover {
  text-decoration: underline;
}

.festapp-artist-schedule-action {
  color: var(--festapp-muted);
  display: flex;
  align-items: center;
}

/* Schedule Grouping Views */
.festapp-schedule-by-time,
.festapp-schedule-by-place {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.festapp-schedule-time-slot,
.festapp-schedule-place-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.festapp-schedule-time-header,
.festapp-schedule-place-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--festapp-fg);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--festapp-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.festapp-schedule-time-items,
.festapp-schedule-place-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: var(--festapp-radius);
  overflow: hidden;
  border: 1px solid var(--festapp-border);
  box-shadow: var(--festapp-shadow-sm);
}

.festapp-schedule-empty {
  padding: 64px 24px;
  text-align: center;
  color: var(--festapp-muted);
  font-size: 1rem;
  background: var(--festapp-muted-bg);
  border-radius: var(--festapp-radius);
  border: 2px dashed var(--festapp-border);
}

/* Schedule List View */
.festapp-schedule-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  padding: 16px 20px;
  text-align: left;
  border-radius: var(--festapp-radius);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--festapp-bg);
  align-items: center;
}

.festapp-schedule-item:hover {
  background: var(--festapp-muted-bg);
}

.festapp-schedule-item-time {
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.festapp-schedule-item-time span {
  font-weight: 800;
  font-size: 1rem;
  color: var(--festapp-fg);
}

.festapp-schedule-item-time span.festapp-schedule-item-end-time {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--festapp-muted);
}

.festapp-schedule-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.festapp-schedule-item-name {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.festapp-schedule-item-place {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--festapp-muted);
}

.festapp-schedule-item-categories {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--festapp-primary);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.festapp-schedule-item-action {
  color: var(--festapp-muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.festapp-schedule-item:hover .festapp-schedule-item-action {
  color: var(--festapp-primary);
  transform: translateX(2px);
}

.festapp-schedule-item-ticket {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin-right: 12px;
  background: var(--festapp-primary);
  color: var(--festapp-primary-fg);
  border-radius: var(--festapp-radius);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px oklch(from var(--festapp-primary) l c h / 0.2);
}

.festapp-schedule-item-ticket:hover {
  background: var(--festapp-alt-1);
  box-shadow: 0 4px 12px oklch(from var(--festapp-primary) l c h / 0.3);
  transform: translateY(-1px);
}

.festapp-schedule-item-ticket:active {
  transform: scale(0.97);
}

/* Performers */
.festapp-event-performers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.festapp-event-performer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--festapp-bg);
  border: 1px solid var(--festapp-border);
  border-radius: 2000px;
  transition: all 0.2s;
}

.festapp-event-performer:hover {
  border-color: var(--festapp-muted);
  background: var(--festapp-muted-bg);
}

.festapp-event-performer-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.festapp-event-performer-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--festapp-muted-bg);
}

.festapp-event-performer-image-container {
  position: relative;
  width: 32px;
  height: 32px;
}

/* Event Performer Image Container for ImageWithSkeleton */
.festapp-event-performer-image-container .festapp-image-container,
.festapp-event-performer-image-container .festapp-image-fallback {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.festapp-event-performer-image-container .festapp-image-reveal {
  border-radius: 50%;
}

.festapp-event-performer-image-container .festapp-image-skeleton {
  border-radius: 50%;
}

.festapp-event-performer-name {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .festapp-artists-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px;
  }

  .festapp-artist-hero-media {
    gap: 24px;
  }

  .festapp-artist-hero-left,
  .festapp-artist-hero-placeholder {
    width: min(320px, 100%);
  }

  .festapp-artist-hero-name {
    font-size: 2.25rem;
  }

  .festapp-schedule-item {
    gap: 16px;
  }

  .festapp-schedule-by-time,
  .festapp-schedule-by-place {
    gap: 32px;
  }

  .festapp-schedule-time-slot,
  .festapp-schedule-place-column {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .festapp-artist-hero-media {
    flex-direction: column;
    gap: 20px;
  }

  .festapp-artist-hero-left,
  .festapp-artist-hero-placeholder {
    width: 100%;
    max-width: 320px;
  }

  .festapp-artist-hero-name {
    font-size: 2rem;
  }

  .festapp-artist-schedule-item {
    padding: 16px;
    gap: 12px;
  }

  .festapp-event-hero-name {
    font-size: 1.75rem;
  }

  .festapp-event-hero-image,
  .festapp-event-hero-image-container,
  .festapp-event-hero-placeholder {
    max-width: 100%;
  }

  .festapp-media-content {
    max-width: 100%;
  }

  .festapp-event-schedule-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .festapp-artists-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .festapp-artist-schedule-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .festapp-event-performers {
    gap: 8px;
  }

  .festapp-schedule-item {
    gap: 12px;
    padding: 12px 16px;
  }
}

/* App Prompt Modal */
.festapp-app-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: festapp-overlay-fade-in 0.3s ease;
}

@keyframes festapp-overlay-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.festapp-app-prompt-modal {
  background: var(--festapp-bg);
  border-radius: var(--festapp-radius-lg) var(--festapp-radius-lg) 0 0;
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: festapp-modal-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes festapp-modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.festapp-app-prompt-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.festapp-app-prompt-logo-svg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: var(--festapp-shadow-lg);
}

.festapp-app-prompt-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--festapp-fg);
  text-align: center;
  margin: 0;
  letter-spacing: -0.01em;
}

.festapp-app-prompt-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.festapp-app-prompt-buttons .festapp-btn {
  width: 100%;
}

/* Powered By Badge */
.festapp-powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px 16px;
  color: var(--festapp-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.festapp-powered-by:hover {
  color: var(--festapp-fg);
}

.festapp-powered-by-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.festapp-powered-by-name {
  font-weight: 700;
}
