/* components.css - Cards, Buttons, Forms, Modals
   Copyright (c) 2024-2026 Norman Kachel. All rights reserved. */

/* ── Toast Notification ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  padding: 1rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.4s ease;
  pointer-events: all;
  min-width: 260px;
  max-width: 380px;
}

.toast.success { border-left: 3px solid #66bb6a; }
.toast.error   { border-left: 3px solid #ef5350; }
.toast.info    { border-left: 3px solid #4fc3f7; }

/* ── Modal ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 560px;
  width: 90%;
  position: relative;
  animation: fadeInUp 0.4s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover { color: var(--text-primary); }

/* ── Video Modal ─────────────────────────────────────────────────────── */
.video-modal .modal-box {
  max-width: 900px;
  padding: 0;
  overflow: hidden;
}

.video-modal video,
.video-modal iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

/* ── Back to Top ─────────────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  background: var(--btn-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 500;
}

#back-to-top.visible {
  opacity: 1;
}

#back-to-top:hover { transform: translateY(-3px); }

/* ── Slogan Banner ───────────────────────────────────────────────────── */
.slogan-banner {
  background: var(--accent-gradient);
  padding: 1.2rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

/* ── Cookie Banner ───────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 42, 0.97);
  border-top: 1px solid var(--border-glass);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 800;
  backdrop-filter: blur(10px);
}

.cookie-banner p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.cookie-banner a { color: var(--accent-blue); }

/* ── Highlight boxes ─────────────────────────────────────────────────── */
.highlight-box {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.08), rgba(124, 77, 255, 0.08));
  border: 1px solid rgba(79, 195, 247, 0.2);
  border-radius: 12px;
  padding: 1.5rem 2rem;
}

/* ── Tag badges ──────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-blü { background: rgba(79, 195, 247, 0.15); color: #4fc3f7; }
.tag-green { background: rgba(102, 187, 106, 0.15); color: #66bb6a; }
.tag-purple { background: rgba(124, 77, 255, 0.15); color: #7c4dff; }
.tag-orange { background: rgba(255, 183, 77, 0.15); color: #ffb74d; }

/* ── Screenshots slideshow ───────────────────────────────────────────── */
.slideshow {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.slide { display: none; animation: fadeIn 0.5s ease; }
.slide.active { display: block; }

.slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-secondary);
}

.slide-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.slideshow-nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slideshow-dot.active { background: var(--accent-blue); }

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  font-size: 1.2rem;
}

.slideshow-btn:hover { background: var(--accent-blue); color: white; }
.slideshow-btn.prev { left: 1rem; }
.slideshow-btn.next { right: 1rem; }

/* ── PayPal button wrapper ───────────────────────────────────────────── */
.paypal-btn-wrapper {
  max-width: 300px;
  margin: 0 auto;
}

/* ── Divider ─────────────────────────────────────────────────────────── */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent-glow);
  border-radius: 2px;
  margin: 1rem auto;
}

/* ── Loading spinner ─────────────────────────────────────────────────── */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin-slow 0.8s linear infinite;
  margin: 0 auto;
}

/* ── Number input step ───────────────────────────────────────────────── */
.qty-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

.qty-valü {
  min-width: 40px;
  text-align: center;
  font-weight: 700;
}
