/* ============================================
   Akrylový Hudobný Magnet – E-shop štýly
   ============================================ */

/* ---------- Premenné ---------- */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --warm: #f97316;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 35%, #ec4899 85%);
  --gradient-soft: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg: #f6f7fb;
  --bg-dark: #0f1115;
  --text: #0f172a;
  --text-muted: #64748b;
  --card-bg: rgba(255,255,255,0.85);
  --card-border: rgba(255,255,255,0.4);
  --radius: 1.2rem;
  --radius-sm: 0.75rem;
  --shadow: 0 8px 32px rgba(99,102,241,0.12);
  --shadow-lg: 0 16px 48px rgba(99,102,241,0.18);
}

/* ---------- Základ ---------- */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typografia ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-weight: 700;
}

/* ---------- Hero sekcia ---------- */
.hero {
  background: var(--gradient-soft);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -150px; right: -100px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(236,72,153,0.1);
  border-radius: 50%;
  bottom: -80px; left: -60px;
}
.hero h1 { color: #fff; font-size: 2.8rem; line-height: 1.2; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.15rem; }
.hero .btn-hero {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  padding: 0.8rem 2.2rem;
  border-radius: 3rem;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.hero .btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  color: var(--primary-dark);
}

/* ---------- Sklenený panel ---------- */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Produktová karta ---------- */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card .product-image {
  background: linear-gradient(135deg, #f0f0ff, #fdf2f8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 2rem;
}
.product-card .product-image img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.product-card .product-image .placeholder-icon {
  font-size: 6rem;
  color: var(--primary);
  opacity: 0.3;
}

/* ---------- Cena ---------- */
.price-tag {
  font-weight: 800;
  font-size: 2rem;
  color: var(--primary);
}
.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1.1rem;
  margin-left: 0.5rem;
}

/* ---------- Vlastnosti ---------- */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(99,102,241,0.08);
  color: var(--primary);
}
.feature-badge i { font-size: 1rem; }

/* ---------- Sekcie ---------- */
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ---------- Kroky (ako to funguje) ---------- */
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.step-number {
  width: 56px; height: 56px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step-card h5 { font-weight: 600; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Tvorba piesne – wizard ---------- */
.wizard-step { display: none; }
.wizard-step.active { display: block; }

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.wizard-progress .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  transition: all 0.3s;
}
.wizard-progress .dot.active {
  background: var(--primary);
  transform: scale(1.25);
}
.wizard-progress .dot.done {
  background: #10b981;
}

/* ---------- Drop zóna ---------- */
.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(99,102,241,0.02);
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(99,102,241,0.06);
}
.drop-zone i { font-size: 3rem; color: var(--primary); opacity: 0.5; }
.drop-zone .drop-text { color: var(--text-muted); margin-top: 0.5rem; }

/* ---------- Náhľad fotky ---------- */
.photo-preview {
  max-width: 200px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 1rem;
}

/* ---------- Prehrávač ---------- */
.player-card {
  background: var(--gradient-soft);
  border-radius: var(--radius);
  padding: 2rem;
  color: #fff;
  text-align: center;
}
.player-card audio {
  width: 100%;
  margin-top: 1rem;
}
.player-card .song-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ---------- Verzie piesne ---------- */
.version-box {
  transition: border-color 0.2s, box-shadow 0.2s;
  border: 2px solid #dee2e6 !important;
}
.version-box:hover {
  border-color: var(--primary) !important;
}
.version-box:has(input:checked) {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* ---------- Tlačidlá ---------- */
.btn-gradient {
  background: var(--gradient);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 3rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}
.btn-gradient:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
  color: #fff;
  transform: translateY(-1px);
}
.btn-gradient:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  border-radius: 3rem;
  font-weight: 500;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* ---------- Formulár ---------- */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  padding: 0.6rem 1rem;
}
.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(99,102,241,0.2);
  border-color: var(--primary);
}
.form-label { font-weight: 500; font-size: 0.9rem; color: var(--text); }

/* ---------- Objednávka ---------- */
.order-summary {
  background: linear-gradient(135deg, #f8faff, #fdf2f8);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}
.order-summary .line {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
}
.order-summary .line.total {
  font-weight: 700;
  font-size: 1.2rem;
  border-top: 2px solid var(--primary);
  padding-top: 0.8rem;
  margin-top: 0.5rem;
  color: var(--primary);
}

/* ---------- Ďakujeme ---------- */
.success-icon {
  width: 100px; height: 100px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}

/* ---------- Spinner ---------- */
.generating-spinner {
  display: inline-block;
  width: 60px; height: 60px;
  border: 4px solid rgba(99,102,241,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- Textová animácia ---------- */
.lyrics-display {
  white-space: pre-wrap;
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  max-height: 300px;
  overflow-y: auto;
}

/* ---------- Responsivita ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero { min-height: 60vh; }
  .price-tag { font-size: 1.6rem; }
  .product-card .product-image { min-height: 220px; }
}

html, body { max-width: 100%; overflow-x: hidden; }
