/* (c) 2024-2026 ASSISTUK Lars Tiedemann. All Rights Reserved. */
/* =========================================================================
   dp-sponsor.css — Styling for sponsor placements
   Lazy/optional — only takes effect when dp-sponsor-config.js is enabled.
   ========================================================================= */

/* ---------- FOOTER ---------- */
.dp-sponsor-footer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  font-size: inherit;
  opacity: 0.85;
  padding: 4px 6px;
  min-height: 44px;
  border-radius: 6px;
  position: relative;
}
.dp-sponsor-footer:hover,
.dp-sponsor-footer:focus {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
.dp-sponsor-footer .dp-sponsor-logo {
  height: 18px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  vertical-align: middle;
}
.dp-sponsor-footer .dp-sponsor-tag strong {
  font-weight: 600;
  color: #FFD700;
}
.dp-sponsor-sep {
  margin: 0 6px;
  opacity: 0.4;
}

/* ---------- INFO SLIDE ---------- */
.dp-sponsor-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}
.dp-sponsor-slide h2 {
  font-size: clamp(20px, 3vw, 28px);
  color: #FFD700;
  margin: 0;
}
.dp-sponsor-slide-logo a {
  display: inline-block;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}
.dp-sponsor-slide-logo a:hover {
  background: rgba(255, 215, 0, 0.12);
}
.dp-sponsor-slide-logo img {
  max-width: 200px;
  max-height: 100px;
  display: block;
}
.dp-sponsor-slide p {
  margin: 0;
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.dp-sponsor-slide .dp-sponsor-desc {
  opacity: 0.85;
  font-style: italic;
}
.dp-sponsor-slide .dp-sponsor-thanks {
  color: #FFD700;
  font-weight: 600;
  margin-top: 12px;
}
.dp-sponsor-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #1f6cc4, #4490e8);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: clamp(15px, 2vw, 19px);
  min-height: 44px;
  min-width: 160px;
  position: relative;
  transition: transform 0.15s, background 0.15s;
}
.dp-sponsor-visit:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #2b7aee, #6bb0ff);
}

/* ---------- SPLASH (only renders for tier=exclusive) ---------- */
.dp-sponsor-splash {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}
.dp-sponsor-splash-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.dp-sponsor-splash-tag {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.dp-sponsor-splash-tag strong { color: #FFD700; }

/* ---------- APP-BADGE (only tier=premium+) ---------- */
.dp-sponsor-badge {
  position: fixed;
  bottom: 8px;
  right: 8px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 6px;
  font-size: 11px;
  opacity: 0.5;
  transition: opacity 0.2s;
  min-height: 28px;
}
.dp-sponsor-badge:hover { opacity: 1; }
.dp-sponsor-badge img { height: 14px; width: auto; max-width: 50px; }
.dp-sponsor-badge strong { color: #FFD700; }

/* ---------- GALLERY HEADER ---------- */
.dp-sponsor-gallery-tag {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.7em;
  opacity: 0.75;
}
.dp-sponsor-gallery-tag a {
  color: #FFD700;
  text-decoration: none;
}

/* ---------- LANG-PICKER PATRON ---------- */
.dp-sponsor-langpatron {
  margin-top: 24px;
  padding: 8px 14px;
  text-align: center;
  font-size: clamp(11px, 1.2vw, 14px);
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.dp-sponsor-langpatron a {
  color: #FFD700;
  text-decoration: none;
}
.dp-sponsor-langpatron strong { color: #FFD700; }

/* ============================================================
   Multi-Sponsor extensions (engine-driven)
   ============================================================ */

/* ---------- Splash overlay (DPSponsorRender.renderSplashOverlay) ---------- */
#dp-sponsor-splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, rgba(8,16,40,0.97), rgba(15,28,68,0.97));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dp-sps-fade-in 0.35s ease-out;
  cursor: default;
}
#dp-sponsor-splash-overlay.dp-sps-hidden {
  animation: dp-sps-fade-out 0.45s ease-in forwards;
}
@keyframes dp-sps-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dp-sps-fade-out { from { opacity: 1; } to { opacity: 0; } }
#dp-sponsor-splash-overlay .dp-sps-inner {
  text-align: center;
  max-width: 480px;
  padding: 32px;
  color: #f0f4ff;
}
#dp-sponsor-splash-overlay .dp-sps-dp-logo {
  width: 96px; height: 96px; object-fit: contain;
  margin-bottom: 12px;
}
#dp-sponsor-splash-overlay h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 4px 0 6px;
  color: #FFD700;
  letter-spacing: 0.5px;
}
#dp-sponsor-splash-overlay p {
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.85;
  margin-bottom: 28px;
}
#dp-sponsor-splash-overlay .dp-sps-partner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.2);
}
#dp-sponsor-splash-overlay .dp-sps-partner img {
  height: 28px; width: auto; max-width: 120px;
  object-fit: contain;
}
#dp-sponsor-splash-overlay .dp-sps-partner span { font-size: 14px; opacity: 0.9; }
#dp-sponsor-splash-overlay .dp-sps-partner strong { color: #FFD700; }

/* ---------- Partner-overview slide (info overlay) ---------- */
.dp-sponsor-overview h2 { color: #FFD700; }
.dp-sponsor-overview h3 {
  font-size: clamp(14px, 1.6vw, 18px);
  margin: 12px 0 8px;
  opacity: 0.85;
}
.dp-sponsor-pb-block {
  text-align: center;
  margin-bottom: 8px;
}
.dp-sponsor-pb-logo {
  display: inline-block;
  margin-bottom: 8px;
  position: relative;
}
.dp-sponsor-pb-logo img { max-height: 60px; width: auto; max-width: 220px; object-fit: contain; }
.dp-sponsor-pb-name {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 4px;
}
.dp-sponsor-pb-desc {
  font-size: clamp(12px, 1.3vw, 14px);
  opacity: 0.8;
  max-width: 540px;
  margin: 0 auto;
}
.dp-sponsor-sep-line {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  width: 80%;
  margin: 14px auto;
}
.dp-sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.dp-sponsor-partner-tile,
.dp-sponsor-room-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 120px;
  min-height: 80px;
  transition: transform 0.18s, border-color 0.18s;
}
.dp-sponsor-partner-tile:hover,
.dp-sponsor-room-tile:hover {
  transform: translateY(-2px);
  border-color: #FFD700;
}
.dp-sponsor-partner-tile img,
.dp-sponsor-room-logo { max-height: 36px; max-width: 100px; object-fit: contain; }
.dp-sponsor-partner-tile .dp-sponsor-name {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.85;
  text-align: center;
}
.dp-sponsor-grid-rooms .dp-sponsor-room-tile {
  min-width: 160px;
  min-height: 100px;
  color: #fff;
}
.dp-sponsor-room-name {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  margin-top: 6px;
}

/* ---------- App badge (paint apps bottom-right) ---------- */
.dp-sponsor-app-badge {
  position: fixed;
  bottom: 22px;
  right: 12px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  opacity: 0.4;
  color: #fff;
  font-size: 11px;
  text-decoration: none;
  pointer-events: auto;
  transition: opacity 0.25s;
}
.dp-sponsor-app-badge:hover,
.dp-sponsor-app-badge:focus { opacity: 0.95; }
.dp-sponsor-app-badge img {
  height: 14px; width: auto; max-width: 60px;
  object-fit: contain;
}
.dp-sponsor-app-badge strong { color: #FFD700; }

/* ---------- Language-overlay patron strip ---------- */
.dp-sponsor-langoverlay {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.75;
  color: #f0f4ff;
}
.dp-sponsor-langoverlay a {
  color: #FFD700;
  text-decoration: none;
}

/* ============================================================
   Art-room gallery view (Museum/?room=<slug>)
   ============================================================ */

/* Subtle accent applied to the whole page when an art room is active */
body.dp-artroom-active .g-slot {
  border: 1px solid color-mix(in srgb, var(--g-artroom-color, #8B2252) 35%, transparent);
}
body.dp-artroom-active .g-slot:hover {
  border-color: var(--g-artroom-color, #8B2252);
}

/* Title-area expands a little when in art-room mode to fit 5 short lines:
   museum name → kunstraum subtitle → page-info → action chips → theme chips */
body.dp-artroom-active .g-title-area {
  gap: 2px;
  padding: 4px 6px;
}
body.dp-artroom-active .g-title-area h1 {
  font-size: clamp(14px, 2.4vw, 22px);
  line-height: 1.15;
  margin: 0;
}
body.dp-artroom-active .g-title-area .subtitle {
  font-size: clamp(10px, 1.2vw, 13px);
  margin: 0;
}
body.dp-artroom-active .g-title-area .page-info {
  font-size: clamp(10px, 1.1vw, 12px);
  margin: 0;
}
body.dp-artroom-active .g-title-area .g-aom-badge {
  display: none !important; /* "Künstler des Monats" pill — hidden in art-room mode */
}

/* Inline action chips inside title-area (Info/Webseite/Teilen/Verlassen) */
.dp-artroom-actions-inline a:hover,
.dp-artroom-actions-inline a:focus { outline: none; }

.dp-artroom-theme-filter-inline button:hover { filter: brightness(1.2); }

/* Floating action chip strip (museum name + buttons) — rendered by
   dp-artroom.js, position:fixed so it never displaces grid content. */
#dp-artroom-actions {
  /* All visual rules are inline (set by JS so we can reflect the room's
     accent colour). This CSS is a safety net only. */
  pointer-events: auto;
}
#dp-artroom-actions a:hover,
#dp-artroom-actions a:focus {
  background: rgba(255,255,255,0.18) !important;
  outline: none;
}

/* Floating theme-filter chip strip */
#dp-artroom-theme-filter {
  pointer-events: auto;
}
#dp-artroom-theme-filter button:hover {
  filter: brightness(1.2);
}

/* Lightbox / single-image: art-room badge */
.g-lb-artroom-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139,34,82,0.45);
  border: 1px solid #FFD700;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  margin-left: 6px;
}
.g-lb-artroom-badge:hover { background: rgba(139,34,82,0.7); }

/* Active art-room banner on SuperHub */
.dp-artroom-startpage-banner {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.7);
  border: 1px solid #FFD700;
  border-radius: 22px;
  color: #fff;
  font-size: 13px;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}
.dp-artroom-startpage-banner a {
  color: #FFD700;
  text-decoration: none;
  margin-left: 6px;
}
.dp-artroom-startpage-banner a:hover { text-decoration: underline; }
.dp-artroom-startpage-banner .dp-banner-close {
  background: none;
  border: 0;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
}

/* ============================================================
   Device-code enrollment dialog
   ============================================================ */
.dp-artroom-enroll {
  position: fixed;
  inset: 0;
  background: rgba(8,16,40,0.92);
  z-index: 90000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dp-artroom-enroll-box {
  background: #122244;
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 14px;
  padding: 28px;
  width: min(420px, 92vw);
  color: #fff;
  text-align: center;
}
.dp-artroom-enroll-box h2 {
  color: #FFD700;
  margin-bottom: 8px;
}
.dp-artroom-enroll-box p { opacity: 0.85; font-size: 13px; margin-bottom: 14px; }
.dp-artroom-enroll-box input[type="text"] {
  width: 100%;
  padding: 14px;
  text-align: center;
  letter-spacing: 0.15em;
  font-size: 18px;
  font-family: monospace;
  background: #0d1f3c;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.dp-artroom-enroll-box .dp-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.dp-artroom-enroll-box button {
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
}
.dp-artroom-enroll-box button.primary {
  background: #FFD700;
  color: #122244;
  font-weight: 600;
}
.dp-artroom-enroll-box button.secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.dp-artroom-enroll-box .dp-error {
  color: #ff6e6e;
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
}

/* ============================================================
   Share dialog (Museum/?room=<slug> → Share button)
   ============================================================ */
.dp-artroom-share {
  position: fixed;
  inset: 0;
  background: rgba(8,16,40,0.92);
  z-index: 90000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dp-artroom-share-box {
  background: #122244;
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 14px;
  padding: 24px;
  width: min(480px, 92vw);
  color: #fff;
  text-align: center;
}
.dp-artroom-share-box h2 { color: #FFD700; margin-bottom: 12px; }
.dp-artroom-share-qr {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  display: inline-block;
}
.dp-artroom-share-qr canvas,
.dp-artroom-share-qr svg { display: block; }
.dp-artroom-share-url {
  font-family: monospace;
  font-size: 12px;
  opacity: 0.8;
  word-break: break-all;
  margin: 10px 0 14px;
}
.dp-artroom-share-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.dp-artroom-share-buttons button,
.dp-artroom-share-buttons a {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
}
.dp-artroom-share-buttons button:hover,
.dp-artroom-share-buttons a:hover { background: rgba(255,255,255,0.18); }
.dp-artroom-share-close {
  margin-top: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 0;
  cursor: pointer;
}

/* ============================================================
   Museum-info overlay (in art-room view)
   ============================================================ */
.dp-museum-info {
  position: fixed;
  inset: 0;
  background: rgba(8,16,40,0.92);
  z-index: 90000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dp-museum-info-box {
  background: #122244;
  border: 1px solid var(--g-artroom-color, #FFD700);
  border-radius: 14px;
  padding: 28px;
  width: min(540px, 92vw);
  color: #fff;
  text-align: center;
}
.dp-museum-info-box h2 { color: #FFD700; margin-bottom: 10px; }
.dp-museum-info-box img.dp-museum-logo {
  max-height: 90px; max-width: 200px;
  object-fit: contain;
  margin: 10px auto;
}
.dp-museum-info-box p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 14px;
}
.dp-museum-info-box a.dp-museum-link {
  display: inline-block;
  padding: 12px 18px;
  background: var(--g-artroom-color, #8B2252);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
}
