/* ===================================================================
   GLOBAL STYLES – 30denní DETOX
   Dark premium design s fialovou paletou
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #0a0a12;
  --bg-secondary:  #0f0f1a;
  --bg-card:       #13131e;
  --bg-card-hover: #17172a;

  --purple-900:  #1a0530;
  --purple-700:  #4a1870;
  --purple-600:  #6c3483;
  --purple-500:  #8e44ad;
  --purple-400:  #a855f7;
  --purple-300:  #c084fc;
  --purple-200:  #d8b4fe;
  --purple-100:  #f3e8ff;

  --accent-gold: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-teal: #14b8a6;

  --text-primary:   #f0eeff;
  --text-secondary: #a8a8c8;
  --text-muted:     #5a5a7a;

  --border:         rgba(108, 52, 131, 0.25);
  --border-bright:  rgba(142, 68, 173, 0.5);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-purple: 0 0 40px rgba(142, 68, 173, 0.2);
  --shadow-card:   0 4px 32px rgba(0, 0, 0, 0.4);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body:    'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { color: var(--text-secondary); line-height: 1.75; }

.display-font { font-family: var(--font-display); }
.gradient-text {
  background: linear-gradient(135deg, var(--purple-300), var(--purple-400), #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ─────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.07); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff;
  box-shadow: 0 4px 24px rgba(142, 68, 173, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(142, 68, 173, 0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(142, 68, 173, 0.08);
  color: var(--purple-300);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(142, 68, 173, 0.15);
  border-color: var(--border-bright);
}

.btn-lg { padding: 18px 44px; font-size: 17px; }
.btn-sm { padding: 10px 22px; font-size: 13px; }

/* CTA – velké tlačítko pro nákup */
.btn-cta {
  background: linear-gradient(135deg, #8e44ad 0%, #6c3483 50%, #5b2c6f 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 20px 52px;
  border-radius: var(--radius-xl);
  box-shadow: 0 6px 40px rgba(142, 68, 173, 0.5), 0 0 0 1px rgba(168, 85, 247, 0.3);
  width: 100%;
  max-width: 480px;
  transition: var(--transition);
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 50px rgba(142, 68, 173, 0.65), 0 0 0 1px rgba(168, 85, 247, 0.5);
}
.btn-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  transition: var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ── Badge ───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.badge-purple {
  background: rgba(142, 68, 173, 0.15);
  color: var(--purple-300);
  border: 1px solid rgba(142, 68, 173, 0.3);
}
.badge-gold {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-sale {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

/* ── Forms ───────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.5px; }
.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--purple-500);
  background: rgba(142, 68, 173, 0.06);
  box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.12);
}
.form-error { font-size: 13px; color: #fb7185; margin-top: 4px; display: none; }
.form-error.visible { display: block; }

/* ── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 18, 0.8);
  border-bottom: 1px solid rgba(108, 52, 131, 0.15);
  transition: var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo span { color: var(--purple-400); }
.nav-links { display: flex; gap: 8px; align-items: center; }

/* ── Divider ─────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Glowing backgrounds ─────────────────────────────────────────── */
.glow-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow-purple {
  background: radial-gradient(circle, rgba(142, 68, 173, 0.25), transparent 70%);
  width: 600px;
  height: 600px;
}
.glow-blue {
  background: radial-gradient(circle, rgba(67, 56, 202, 0.15), transparent 70%);
  width: 500px;
  height: 500px;
}

/* ── Grid ────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Alerts ──────────────────────────────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
  gap: 10px;
  align-items: flex-start;
}
.alert.visible { display: flex; }
.alert-error {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fda4af;
}
.alert-success {
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.25);
  color: #5eead4;
}

/* ── Spinner ─────────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.spinner.active { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Fade-in animation ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease forwards; }
.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ── Utilities ───────────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-purple  { color: var(--purple-400); }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 11px; }
.mt-4         { margin-top: 4px; }
.mt-8         { margin-top: 8px; }
.mt-16        { margin-top: 16px; }
.mt-24        { margin-top: 24px; }
.mt-32        { margin-top: 32px; }
.mb-8         { margin-bottom: 8px; }
.mb-16        { margin-bottom: 16px; }
.mb-32        { margin-bottom: 32px; }
.d-flex       { display: flex; }
.flex-col     { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-8        { gap: 8px; }
.gap-16       { gap: 16px; }
.gap-24       { gap: 24px; }
.w-full       { width: 100%; }
.relative     { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hide-mobile { display: none; }
  .btn-cta { max-width: 100%; }
}
