/* Global dark theme overrides – palette aligned with AETCAR */
:root {
  --bg-main: #0a0a0a;
  --bg-surface: #161616;
  --bg-surface-2: #1e1e1e;
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --accent: #f6b15d;
  --accent-2: #d4944a;
  --accent-glow: rgba(246, 177, 93, 0.3);
  --border-soft: #333;
  --glass-bg: rgba(20, 20, 20, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
}

body, .site-wrap {
  background: var(--bg-main);
  background-image:
    linear-gradient(90deg,
      rgba(246, 177, 93, 0.025) 0%,
      transparent 22%,
      transparent 78%,
      rgba(246, 177, 93, 0.025) 100%);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ambient breathing glow – AETCAR style */
.site-wrap::after {
  content: '';
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  max-width: 100vw;
  height: 700px;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(246, 177, 93, 0.035) 25%,
      rgba(246, 177, 93, 0.055) 50%,
      rgba(246, 177, 93, 0.035) 75%,
      transparent 100%);
  mask-image:
    linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: breathingLight 8s ease-in-out infinite;
}

@keyframes breathingLight {
  0%, 100% {
    opacity: 0.65;
    filter: brightness(0.92);
  }
  50% {
    opacity: 1;
    filter: brightness(1.1);
  }
}

/* Scrollbar – AETCAR style */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #666; }

/* ── Navbar ── */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border) !important;
  padding: 0 28px;
}

.nav-row {
  display: flex;
  align-items: center;
  height: 64px;
}

.nav-side {
  flex: 1 1 0;
  min-width: 0;
}

.nav-side--left {
  display: flex;
  align-items: center;
}

.nav-side--right {
  justify-content: flex-end;
  align-items: center;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
}

.site-navbar .brand-title {
  font-family: 'Cormorant Garamond', 'Cinzel', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(ellipse 80% 100% at 50% 50%, #fff9e6 0%, #f6b15d 40%, #f6b15d 60%, #fff9e6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none !important;
}

.site-navbar .nav-link {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #d1d1d1 !important;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 12px;
  border-radius: 0;
  transition: color 0.3s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  background: transparent;
  border-color: transparent;
}

.navbar-toggler {
  border: 1px solid var(--border-soft) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  background: transparent;
}

.nav-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.25rem;
  text-decoration: none;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-login-icon:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

/* Nav border line – AETCAR style */
.nav-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* Mobile collapse menu dark styling */
.site-navbar .navbar-collapse {
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid var(--glass-border);
}

/* Index sections */
.hero-section,
.latest-coins-section,
.collections-section,
.contact-form-container,
.about-section,
.about-header,
.coin-details,
.detail-row,
.detail-separator,
.card,
.modal-content,
.table {
  color: var(--text-main);
}

.feature-box,
.collection-card,
.contact-form-container,
.about-section,
.coin-details,
.card,
.modal-content {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-soft) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.about-header .lead,
.text-muted,
.detail-label {
  color: var(--text-muted) !important;
}

a {
  color: #f6b15d;
}

a:hover {
  color: #fcd9a0;
}

.btn-outline-primary {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-primary:hover {
  background: var(--accent);
  color: #000;
}

.form-control,
.form-select,
textarea,
select {
  background: var(--bg-surface-2) !important;
  color: #f8fafc !important;
  border: 1px solid var(--border-soft) !important;
}

.form-control::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* --- Detail page polish (Objektseite) --- */
#captions .coin-details {
  position: relative;
  background: linear-gradient(145deg, #1e1e1e 0%, #181818 52%, #121212 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px;
  padding: 1.2rem 1.2rem 1rem;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 20px -16px rgba(2, 6, 23, 0.38),
    inset 1px 1px 0 rgba(255, 255, 255, 0.08),
    inset -1px -1px 0 rgba(7, 11, 18, 0.28),
    inset 0 8px 12px -10px rgba(255, 255, 255, 0.08),
    inset 0 -12px 16px -12px rgba(2, 6, 23, 0.34);
}

#captions .detail-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.28rem 0;
}

#captions .detail-row:last-child {
  border-bottom: none;
}

#captions .detail-label {
  color: var(--text-muted) !important;
  font-weight: 600;
}

#captions .detail-value {
  color: var(--text-main) !important;
}

.detail-admin-shell {
  margin-bottom: 0.75rem;
}

.detail-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.92) 0%, rgba(16, 16, 16, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 28px -20px rgba(2, 6, 23, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.detail-admin-status-group {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  flex: 1 1 320px;
}

.detail-admin-status-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 170px;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.62) 0%, rgba(22, 22, 22, 0.32) 100%);
  border: 1px solid rgba(246, 177, 93, 0.14);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.detail-admin-status-card:hover,
.detail-admin-status-card:focus {
  transform: translateY(-1px);
  border-color: rgba(246, 177, 93, 0.38);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.75) 0%, rgba(30, 30, 30, 0.45) 100%);
  color: var(--text-main);
}

.detail-admin-status-card.is-static {
  cursor: default;
}

.detail-admin-status-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-admin-status-value {
  margin-top: 0.2rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.detail-admin-nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex: 1 1 420px;
}

.detail-admin-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-admin-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  margin: 0;
}

.detail-admin-nav .page-item {
  margin: 0;
}

.detail-admin-nav .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 22, 22, 0.45);
  color: var(--text-main);
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  box-shadow: none;
}

.detail-admin-nav .page-link:hover,
.detail-admin-nav .page-link:focus {
  border-color: rgba(246, 177, 93, 0.38);
  background: rgba(30, 30, 30, 0.9);
  color: #fff;
}

.detail-admin-nav-pill {
  min-width: 92px;
  font-weight: 600;
}

.detail-admin-nav-arrow {
  font-weight: 700;
}

.detail-admin-nav .is-current {
  background: linear-gradient(135deg, rgba(246, 177, 93, 0.22) 0%, rgba(212, 148, 74, 0.14) 100%);
  border-color: rgba(246, 177, 93, 0.42);
  color: #fff;
}

.detail-admin-nav .page-link.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .detail-admin-toolbar {
    padding: 0.9rem;
  }

  .detail-admin-nav-wrap {
    align-items: flex-start;
  }

  .detail-admin-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .detail-admin-status-card {
    min-width: 100%;
  }

  .detail-admin-nav-pill {
    min-width: 72px;
    font-size: 0.85rem;
  }
}

/* Coin image area: unified dark frame matching browse cards */
#captions .coin-image-row {
  --bs-gutter-x: 0;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  padding: 0.9rem;
  margin: 0 auto 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  isolation: isolate;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.18),
    0 14px 28px -22px rgba(15, 23, 42, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 0 1px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  z-index: 1;
}

#captions .coin-image-row::before {
  inset: 0.35rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

#captions .coin-image-row::after {
  inset: 0;
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.08),
    inset 0 0 24px rgba(255, 255, 255, 0.08);
}

#captions .coin-image-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.85rem;
}

#captions .coin-image-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

#captions .coin-image-stage a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

#captions .coin-image-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
}

/* Center HR dividers above Av/Rv descriptions */
#captions .col-md-6 hr {
  margin-left: auto;
  margin-right: auto;
  border-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

/* Floating feedback button */
.detail-feedback-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e1e1e 0%, #161616 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.detail-feedback-btn:hover {
  color: var(--accent);
  border-color: rgba(246, 177, 93, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

/* Better object title contrast */
#captions ~ .row h4,
h4 {
  color: #f8fafc;
}

/* ── Sammlung page – modal & misc ── */
.modal-content {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-soft) !important;
  color: var(--text-main);
}

.modal-header {
  border-bottom-color: var(--border-soft) !important;
}

.modal-footer {
  border-top-color: var(--border-soft) !important;
}

.modal-header .close,
.modal-header .btn-close {
  color: var(--text-muted);
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  padding: 22px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer-sep {
  opacity: 0.4;
}

