/* GalleryOS — Shared entity / detail surface styles (extracted from index.html inline CSS) */

.gos-gradient-glow {
  position: absolute;
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  background: radial-gradient(circle, rgba(27, 77, 255, 0.08) 0%, transparent 68%);
  top: 0;
  left: 50%;
  transform: translate(-50%, -20%);
  z-index: 0;
  pointer-events: none;
}
.dark .gos-gradient-glow {
  background: radial-gradient(circle, rgba(27, 77, 255, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Secondary detail canvases — top-left accent (matches exhibition/fair pattern) */
#view-news-detail .news-detail-canvas,
#view-shop-detail .shop-detail-canvas,
#view-newsletter-detail .newsletter-detail-canvas,
#view-contact-submission-detail .contact-submission-detail-canvas,
#view-resident-detail .resident-detail-canvas {
  background: radial-gradient(
    circle at 10% -8%,
    color-mix(in srgb, var(--gos-accent) 14%, transparent) 0%,
    transparent 40%
  ), var(--gos-bg) !important;
}

#gos-toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}
.gos-toast {
  pointer-events: auto;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: var(--gos-text-sm, 13px);
  line-height: 1.4;
  border: 1px solid var(--gos-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  color: var(--gos-text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  animation: gos-fade-in-up var(--gos-duration-medium) var(--gos-ease-out) forwards;
}
.dark .gos-toast {
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.gos-toast--success { border-color: rgba(52, 211, 153, 0.35); }
.gos-toast--error { border-color: rgba(248, 113, 113, 0.35); }
.gos-toast--actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: min(320px, calc(100vw - 2.5rem));
}
.gos-toast__msg { line-height: 1.4; }
.gos-toast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.gos-toast__action {
  appearance: none;
  border: 1px solid var(--gos-border);
  background: transparent;
  color: var(--gos-text-primary);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 32px;
}
.gos-toast__action--primary {
  background: var(--gos-accent, #1B4DFF);
  border-color: transparent;
  color: #fff;
}
.gos-toast__action:hover { filter: brightness(1.05); }

/* Journey success panel */
#gos-journey-panel {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}
#gos-journey-panel.is-open { display: flex; }
.gos-journey-panel__card {
  width: min(420px, 100%);
  background: var(--gos-surface, #fff);
  color: var(--gos-text-primary);
  border: 1px solid var(--gos-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  padding: 1.25rem 1.35rem 1.15rem;
}
.dark .gos-journey-panel__card {
  background: rgba(16, 16, 16, 0.96);
}
.gos-journey-panel__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gos-text-secondary, #666);
}
.gos-journey-panel__title {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.3;
}
.gos-journey-panel__copy {
  margin: 0 0 1rem;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gos-text-secondary, #666);
}
.gos-journey-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.gos-journey-panel__primary,
.gos-journey-panel__secondary,
.gos-journey-panel__dismiss {
  appearance: none;
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.gos-journey-panel__primary {
  background: var(--gos-accent, #1B4DFF);
  color: #fff;
}
.gos-journey-panel__secondary {
  background: transparent;
  border-color: var(--gos-border);
  color: var(--gos-text-primary);
}
.gos-journey-panel__dismiss {
  background: transparent;
  border: 0;
  color: var(--gos-text-secondary, #666);
  font-weight: 500;
  min-height: 36px;
}
.gos-journey-panel__secondaries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.gos-journey-panel__secondaries .gos-journey-panel__secondary {
  flex: 1 1 calc(50% - 0.2rem);
}

/* Detail completion nudge */
.gos-journey-nudge {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--gos-accent, #1B4DFF) 28%, var(--gos-border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--gos-accent, #1B4DFF) 8%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.dark .gos-journey-nudge {
  background: color-mix(in srgb, var(--gos-accent, #1B4DFF) 14%, transparent);
}
.gos-journey-nudge__copy {
  flex: 1 1 180px;
  min-width: 0;
}
.gos-journey-nudge__eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gos-text-secondary);
}
.gos-journey-nudge__title {
  margin: 0.15rem 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.gos-journey-nudge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.gos-journey-nudge__dismiss {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gos-text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  margin-left: auto;
}

.gos-enquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

#gos-publish-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
#gos-publish-preview-modal.is-open { display: flex; }
.gos-publish-preview__panel {
  width: min(1100px, 100%);
  height: min(85vh, 800px);
  background: var(--gos-surface);
  border: 1px solid var(--gos-border);
  border-radius: var(--gos-radius-lg, 18px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--gos-shadow-elevated);
}
.gos-publish-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gos-border);
}
.gos-publish-preview__frame {
  flex: 1;
  border: 0;
  width: 100%;
  background: #fff;
}
