/* ================================================
   Butterfly Members – CSS-Erweiterung
   Baut auf butterfly-site/assets/css/style.css auf.
   Gleiche Design-Variablen und Komponenten.
   ================================================ */

/* -------------------- */
/* Auth-Seiten (Login / Register) */
/* -------------------- */

.auth-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 70vh;
  padding-top: 4rem;
}

.auth-box {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(to bottom right, rgba(24, 21, 59, 0.96), rgba(61, 33, 72, 0.98));
  border: 1px solid rgba(210, 152, 110, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.auth-box--wide {
  max-width: 680px;
}

.auth-form {
  margin-top: 1.5rem;
}

.auth-switch {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(248, 240, 234, 0.7);
}

/* -------------------- */
/* Alerts               */
/* -------------------- */

.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert p { margin: 0 0 0.3rem; }
.alert p:last-child { margin-bottom: 0; }

.alert-error {
  background: rgba(180, 50, 50, 0.18);
  border: 1px solid rgba(220, 80, 80, 0.45);
  color: rgba(255, 160, 160, 0.95);
}

.alert-success {
  background: rgba(50, 180, 100, 0.15);
  border: 1px solid rgba(80, 200, 120, 0.4);
  color: rgba(140, 230, 170, 0.95);
}

/* -------------------- */
/* Buttons-Erweiterungen */
/* -------------------- */

.btn-full {
  width: 100%;
  margin-top: 0.5rem;
}

/* -------------------- */
/* Register – Pricing   */
/* -------------------- */

.membership-perks {
  margin: 2rem 0;
}

.pricing-block {
  margin: 2rem 0;
}

.pricing-grid {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pricing-card {
  position: relative;
  flex: 1;
  min-width: 140px;
  background: linear-gradient(to bottom right, rgba(24, 21, 59, 0.94), rgba(61, 33, 72, 0.98));
  border: 1px solid rgba(210, 152, 110, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.2rem;
  text-align: center;
}

.pricing-card--featured {
  border-color: var(--color-butterfly-gold);
  box-shadow: 0 0 20px rgba(194, 109, 48, 0.25);
}

.pricing-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248, 240, 234, 0.7);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-glowing-ember);
}

.pricing-tag {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--color-butterfly-gold), var(--color-deep-magenta));
  color: white;
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* -------------------- */
/* Register – Payment   */
/* -------------------- */

.payment-block {
  margin: 2rem 0;
}

.payment-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.payment-tab {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 152, 110, 0.4);
  background: transparent;
  color: rgba(248, 240, 234, 0.7);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.payment-tab.active {
  background: linear-gradient(to right, var(--color-butterfly-gold), var(--color-deep-magenta));
  border-color: transparent;
  color: white;
}

.payment-content {
  background: rgba(9, 15, 44, 0.4);
  border: 1px solid rgba(210, 152, 110, 0.2);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.payment-hint {
  font-size: 0.88rem;
  color: rgba(248, 240, 234, 0.55);
  margin-top: 0.5rem;
}

.paypal-btn {
  margin-top: 0.75rem;
  display: inline-flex;
}

.bank-details dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.2rem;
  margin: 0;
}

.bank-details dt {
  color: rgba(248, 240, 234, 0.6);
  font-size: 0.9rem;
}

.bank-details dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-soft-dawn);
}

.register-block { margin-top: 2rem; }

/* Radio Buttons */
.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.4rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: rgba(248, 240, 234, 0.9);
}

.hint {
  font-size: 0.82rem;
  color: rgba(248, 240, 234, 0.5);
  font-weight: 400;
}

/* -------------------- */
/* Dashboard            */
/* -------------------- */

.members-hero {
  padding-bottom: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom right, rgba(24, 21, 59, 0.94), rgba(61, 33, 72, 0.98));
  border: 1px solid rgba(210, 152, 110, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  text-decoration: none;
  color: var(--color-soft-dawn);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(210, 152, 110, 0.6);
  color: var(--color-soft-dawn);
}

.dashboard-card--highlight {
  border-color: var(--color-butterfly-gold);
  box-shadow: 0 0 24px rgba(194, 109, 48, 0.3);
}

.dashboard-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.dashboard-card h3 {
  margin: 0 0 0.4rem;
  color: var(--color-glowing-ember);
  font-size: 1.15rem;
}

.dashboard-card p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(248, 240, 234, 0.75);
  flex: 1;
}

.dashboard-link {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--color-butterfly-gold);
}

.dashboard-link--live {
  color: #7fff7f;
  font-weight: 600;
}

/* -------------------- */
/* Medien-Galerie        */
/* -------------------- */

.media-section-title {
  margin-bottom: 0.25rem;
}

.media-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(210, 152, 110, 0.4);
  background: transparent;
  color: rgba(248, 240, 234, 0.7);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(to right, var(--color-butterfly-gold), var(--color-deep-magenta));
  border-color: transparent;
  color: white;
}

/* Videos-Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-card {
  background: linear-gradient(to bottom right, rgba(24, 21, 59, 0.94), rgba(61, 33, 72, 0.98));
  border: 1px solid rgba(210, 152, 110, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-card video {
  width: 100%;
  display: block;
  background: #000;
  max-height: 220px;
  object-fit: cover;
}

.video-card-info {
  padding: 0.9rem 1rem;
}

.video-card-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--color-glowing-ember);
}

.video-card-info p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(248, 240, 234, 0.7);
}

/* Fotos-Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(210, 152, 110, 0.25);
  cursor: pointer;
  background: rgba(24, 21, 59, 0.8);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.photo-thumb:hover img {
  transform: scale(1.07);
}

/* Upcoming / gesperrte Medien */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.upcoming-card {
  background: rgba(9, 15, 44, 0.6);
  border: 1px dashed rgba(210, 152, 110, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.2rem;
  text-align: center;
  color: rgba(248, 240, 234, 0.5);
}

.upcoming-card .upcoming-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.upcoming-card .upcoming-date { font-size: 0.85rem; color: var(--color-butterfly-gold); margin-top: 0.4rem; }

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 9, 0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: rgba(248, 240, 234, 0.8);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.lightbox-close:hover { color: white; }

/* -------------------- */
/* Booking              */
/* -------------------- */

.calendar-embed-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(210, 152, 110, 0.35);
  margin-bottom: 2rem;
  filter: invert(1) hue-rotate(180deg);  /* Dark-Anpassung des Google Calendar */
}

.calendar-embed-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
}

.booking-form { max-width: 42rem; margin-top: 1.5rem; }

.booking-status-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.booking-status-badge--pending   { background: rgba(200,160,40,0.2);  color: #e0c050; }
.booking-status-badge--confirmed { background: rgba(40,180,80,0.2);   color: #60d080; }
.booking-status-badge--cancelled { background: rgba(180,40,40,0.2);   color: #d06060; }

/* -------------------- */
/* Webcam / Timer       */
/* -------------------- */

.webcam-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.webcam-frame {
  width: 100%;
  height: 550px;
  border: none;
  border-radius: var(--radius-lg);
  background: #000;
  display: block;
}

.webcam-timer {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(9, 15, 44, 0.88);
  border: 1px solid rgba(210, 152, 110, 0.5);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-soft-dawn);
  z-index: 10;
}

.webcam-timer--warning {
  border-color: #e05050;
  color: #ff8080;
}

.webcam-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.webcam-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #40e040;
  box-shadow: 0 0 8px #40e040;
  flex-shrink: 0;
}

/* -------------------- */
/* Admin-Panel          */
/* -------------------- */

.admin-table-wrapper {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 0.93rem;
}

.admin-table thead {
  background: rgba(24, 21, 59, 0.9);
}

.admin-table th,
.admin-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(210, 152, 110, 0.2);
}

.admin-table th {
  font-weight: 600;
  color: var(--color-soft-dawn);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: rgba(24, 21, 59, 0.5);
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge--pending  { background: rgba(200,160,40,0.2);  color: #d4a020; }
.status-badge--active   { background: rgba(40,180,80,0.2);   color: #40b060; }
.status-badge--expired  { background: rgba(100,100,100,0.2); color: #888; }
.status-badge--banned   { background: rgba(180,40,40,0.2);   color: #c04040; }

.admin-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-danger {
  background: rgba(180, 40, 40, 0.3);
  border: 1px solid rgba(200, 60, 60, 0.5);
  color: #ff8080;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}

.btn-danger:hover {
  background: rgba(180, 40, 40, 0.5);
  color: #ffaaaa;
}

.btn-success {
  background: rgba(40, 140, 70, 0.3);
  border: 1px solid rgba(60, 180, 90, 0.5);
  color: #60d080;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}

.btn-success:hover {
  background: rgba(40, 140, 70, 0.5);
}

/* Admin-Nav */
.admin-subnav {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0 1rem;
  flex-wrap: wrap;
}

.admin-subnav a {
  color: rgba(248, 240, 234, 0.7);
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(210, 152, 110, 0.25);
  font-size: 0.9rem;
  transition: all 0.15s;
}

.admin-subnav a:hover,
.admin-subnav a.active {
  background: rgba(24, 21, 59, 0.7);
  border-color: rgba(210, 152, 110, 0.5);
  color: var(--color-glowing-ember);
}

/* Upload-Formular */
.upload-form { max-width: 34rem; }

.upload-drop-area {
  border: 2px dashed rgba(210, 152, 110, 0.4);
  border-radius: var(--radius-sm);
  padding: 2rem;
  text-align: center;
  color: rgba(248, 240, 234, 0.5);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-drop-area:hover,
.upload-drop-area.drag-over {
  border-color: var(--color-butterfly-gold);
  background: rgba(194, 109, 48, 0.07);
  color: var(--color-glowing-ember);
}

/* Success-Banner (Register) */
.success-banner {
  text-align: center;
  padding: 1rem 0;
}

.success-banner h1 { color: #60d080; }

/* -------------------- */
/* Mitglieder-Nav       */
/* -------------------- */

.nav-logout {
  margin-left: auto;
  color: rgba(248, 240, 234, 0.5) !important;
}

.nav-logout:hover {
  color: rgba(248, 240, 234, 0.85) !important;
}

/* -------------------- */
/* Responsive           */
/* -------------------- */

@media (max-width: 860px) {
  .auth-section {
    padding-top: 2rem;
    align-items: stretch;
  }

  .auth-box {
    padding: 1.75rem 1.25rem;
  }

  .webcam-frame {
    height: 280px;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
