/* =================================================================
   sabine.lv — Ezoterikas vietne (koplietojamie stili)
   Dizains: "Modern Dark Cinema" (UI UX Pro Max)
   Palete: spiritual purple + warm gold uz tumša gradienta
   Fonti: Cormorant (virsraksti) + Montserrat (body)
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --bg-deep:      #07060d;
  --bg-base:      #0b0916;
  --bg-elevated:  #120f20;
  --nav-bg:       rgba(11, 9, 22, 0.72);
  --nav-bg-open:  rgba(11, 9, 22, 0.96);

  --surface:        rgba(255, 255, 255, 0.04);
  --surface-hover:  rgba(255, 255, 255, 0.07);
  --border:         rgba(183, 148, 246, 0.14);
  --border-strong:  rgba(183, 148, 246, 0.30);

  --text:        #ece9f5;
  --text-muted:  #9b95b4;

  --violet:      #b794f6;
  --violet-deep: #7c3aed;
  --cyan:        #67e8f9;
  --gold:        #e0b352;
  --gold-deep:   #a16207;

  --glow-violet: rgba(124, 58, 237, 0.35);
  --glow-gold:   rgba(224, 179, 82, 0.25);

  --radius:      16px;
  --radius-lg:   24px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --maxw:        1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow blobi fonā */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
body::before {
  width: 540px; height: 540px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, var(--glow-violet), transparent 70%);
  animation: drift1 22s var(--ease) infinite alternate;
}
body::after {
  width: 460px; height: 460px;
  top: 40%; right: -140px;
  background: radial-gradient(circle, var(--glow-gold), transparent 70%);
  animation: drift2 28s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate(120px, 160px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-100px, -120px) scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Navigācija ---------- */
#nav-checkbox { display: none; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Cormorant', serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo .glyph { color: var(--gold); text-shadow: 0 0 14px var(--glow-gold); }
.nav-links { list-style: none; display: flex; gap: 0.4rem; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--violet); background: rgba(124, 58, 237, 0.12); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--nav-bg-open);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-links a { padding: 0.9rem 1.5rem; border-radius: 0; }
  #nav-checkbox:checked ~ .site-nav .nav-links { max-height: 420px; }
  #nav-checkbox:checked ~ .site-nav .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-checkbox:checked ~ .site-nav .nav-toggle span:nth-child(2) { opacity: 0; }
  #nav-checkbox:checked ~ .site-nav .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.page-hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.page-hero .symbol {
  font-size: 1.5rem;
  letter-spacing: 0.7rem;
  color: var(--gold);
  text-shadow: 0 0 20px var(--glow-gold);
  margin-bottom: 1.6rem;
  opacity: 0.9;
}
.page-hero h1 {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #ffffff 0%, var(--violet) 55%, var(--gold) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
}
.page-hero .subtitle {
  font-size: 1.18rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Konteineri ---------- */
.container,
.container-narrow {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 800px; }

/* ---------- Info kartes (frosted glass) ---------- */
.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.4rem;
  margin-bottom: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 50px -20px var(--glow-violet);
}
.card h2 {
  font-family: 'Cormorant', serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.card h2 .icon { font-size: 1.5rem; filter: drop-shadow(0 0 8px var(--glow-violet)); }
.card p { color: var(--text-muted); margin-bottom: 0.9rem; }
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--text); font-weight: 600; }
.card em { color: var(--violet); font-style: italic; }
.card a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(103, 232, 249, 0.3);
  transition: border-color 0.25s var(--ease);
}
.card a:hover { border-color: var(--cyan); }
.card ul { list-style: none; margin: 0.6rem 0; }
.card ul li {
  color: var(--text-muted);
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
}
.card ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
  top: 0.6rem;
}
.card ul li strong { color: var(--text); }

.quote {
  margin-top: 1.2rem;
  padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--gold);
  background: rgba(224, 179, 82, 0.06);
  border-radius: 0 12px 12px 0;
  font-family: 'Cormorant', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
}

/* ---------- Veikals (index) ---------- */
.shop-header { text-align: center; margin: 5rem auto 1rem; max-width: 640px; }
.shop-header h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 600;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.shop-header h2 .icon { -webkit-text-fill-color: initial; }
.shop-header p { color: var(--text-muted); font-weight: 300; margin-top: 0.4rem; }

.category {
  font-family: 'Cormorant', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  margin: 3.4rem 0 1.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.3rem;
}

.product {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.product::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.product:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: 0 22px 50px -24px var(--glow-violet);
}
.product:hover::after { opacity: 1; }

.product-icon { font-size: 2.2rem; margin-bottom: 0.9rem; filter: drop-shadow(0 0 10px var(--glow-violet)); }
.product-title {
  font-family: 'Cormorant', serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.product-price {
  font-family: 'Cormorant', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 18px var(--glow-gold);
}
.product-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #15101f;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  padding: 0.55rem 1.3rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), filter 0.2s var(--ease);
  box-shadow: 0 6px 18px -8px var(--glow-violet);
}
.product-btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 26px -8px var(--glow-violet); }
.product-btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Numeroloģija (num-grid) ---------- */
.num-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
  margin: 1.4rem 0;
}
.num-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.num-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px -22px var(--glow-violet);
}
.num-card .num {
  font-family: 'Cormorant', serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.num-card .name {
  font-family: 'Cormorant', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.num-card .desc { font-size: 0.86rem; color: var(--text-muted); font-weight: 300; }

/* ---------- Astroloģija (zodiac-grid) ---------- */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.1rem;
  margin: 1.4rem 0;
}
.zodiac {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.zodiac:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px -22px var(--glow-violet);
}
.zodiac-symbol {
  font-size: 2.4rem;
  color: var(--gold);
  text-shadow: 0 0 16px var(--glow-gold);
  margin-bottom: 0.6rem;
}
.zodiac-name {
  font-family: 'Cormorant', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.zodiac-dates { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.zodiac-element {
  font-size: 0.82rem;
  color: var(--violet);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Kontakti (contact-grid) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 1.4rem 0;
}
.contact-item {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px -22px var(--glow-violet);
}
.contact-item .icon {
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 0 0 14px var(--glow-gold);
  display: block;
  margin-bottom: 0.7rem;
}
.contact-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.contact-item .value {
  font-family: 'Cormorant', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.contact-item .value a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(103, 232, 249, 0.3);
  transition: border-color 0.25s var(--ease);
}
.contact-item .value a:hover { border-color: var(--cyan); }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  margin-top: 6rem;
  padding: 3.5rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.04));
}
footer .glyph {
  font-size: 1.4rem;
  letter-spacing: 0.6rem;
  color: var(--gold);
  text-shadow: 0 0 18px var(--glow-gold);
  margin-bottom: 1.2rem;
}
footer p { color: var(--text-muted); font-weight: 300; max-width: 520px; margin: 0 auto; }
footer em { color: var(--violet); font-style: italic; }

/* ---------- Subtila parādīšanās ielādējoties ---------- */
@media (prefers-reduced-motion: no-preference) {
  .card, .product, .num-card, .zodiac, .contact-item {
    animation: rise 0.6s var(--ease) both;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   GAIŠĀ TĒMA — aktivizē ar <html data-theme="light">
   ============================================================ */
:root[data-theme="light"] {
  --bg-deep:      #ece8df;
  --bg-base:      #f4f1ea;
  --bg-elevated:  #ffffff;
  --nav-bg:       rgba(244, 241, 234, 0.82);
  --nav-bg-open:  rgba(244, 241, 234, 0.97);

  --surface:        rgba(26, 20, 40, 0.04);
  --surface-hover:  rgba(26, 20, 40, 0.07);
  --border:         rgba(124, 58, 237, 0.18);
  --border-strong:  rgba(124, 58, 237, 0.38);

  --text:        #2a2336;
  --text-muted:  #6a6380;

  --violet:      #7c3aed;
  --violet-deep: #6d28d9;
  --cyan:        #0e7490;
  --gold:        #a9760f;
  --gold-deep:   #855c0a;

  --glow-violet: rgba(124, 58, 237, 0.10);
  --glow-gold:   rgba(169, 118, 15, 0.08);
}

/* === Diena/Nakts tēmas slēdzis === */
.daynight {
  position: relative;
  width: 72px; height: 32px;
  flex: 0 0 auto;
  border: none; padding: 0;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(160deg, #1c2b4a, #2c3e63);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
  transition: background .55s var(--ease);
}
:root[data-theme="light"] .daynight {
  background: linear-gradient(160deg, #f8d96f, #f1c33f);
}
.daynight > span { position: absolute; pointer-events: none; }

/* zvaigznes (nakts) */
.dn-stars { inset: 0; transition: opacity .4s ease; }
.dn-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .9; }
.dn-stars i:nth-child(1) { top: 6px;  left: 41px; }
.dn-stars i:nth-child(2) { top: 13px; left: 49px; width: 1.5px; height: 1.5px; }
.dn-stars i:nth-child(3) { top: 8px;  left: 57px; }
.dn-stars i:nth-child(4) { top: 18px; left: 45px; width: 1.5px; height: 1.5px; }
.dn-stars i:nth-child(5) { top: 21px; left: 61px; }

/* mēness sirpis (nakts) */
.dn-moon { top: 6px; right: 10px; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset -4px -1px 0 0 #e3e7ee; transition: opacity .4s ease; }

/* saule (diena) */
.dn-sun { top: 6px; left: 10px; width: 13px; height: 13px; border-radius: 50%; background: #fff3cf; box-shadow: 0 0 9px 3px rgba(255,238,170,.95); opacity: 0; transition: opacity .4s ease; }

/* kalni */
.dn-mtn { left: 0; right: 0; bottom: 0; height: 14px; background: #15223c;
  clip-path: polygon(0 100%, 18% 52%, 33% 82%, 50% 38%, 66% 80%, 82% 55%, 100% 84%, 100% 100%);
  transition: background .55s var(--ease); }
.dn-mtn2 { height: 10px; background: #233456; opacity: .9;
  clip-path: polygon(0 100%, 12% 70%, 28% 50%, 45% 75%, 60% 55%, 78% 78%, 92% 60%, 100% 80%, 100% 100%); }
:root[data-theme="light"] .dn-mtn  { background: #d99a26; }
:root[data-theme="light"] .dn-mtn2 { background: #e8b54a; }

/* slīdošais aplis (saule/mēness) */
.dn-knob { top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ece9e1);
  box-shadow: 0 2px 5px rgba(0,0,0,.45); z-index: 5;
  transition: left .55s var(--ease), box-shadow .5s ease; }
:root[data-theme="light"] .dn-knob { left: 43px;
  box-shadow: 0 2px 5px rgba(170,130,20,.45), 0 0 10px 2px rgba(255,235,150,.55); }

/* nakts/dienas elementu redzamība */
:root[data-theme="light"] .dn-stars,
:root[data-theme="light"] .dn-moon { opacity: 0; }
:root[data-theme="light"] .dn-sun  { opacity: 1; }
