/* AstroVize.cz - Design System */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Raleway:wght@300;400;500;600&display=swap');

:root {
  --background: 230 35% 7%;
  --foreground: 220 20% 90%;
  --card: 230 30% 12%;
  --card-foreground: 220 20% 90%;
  --primary: 270 60% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 230 30% 18%;
  --secondary-foreground: 220 20% 90%;
  --muted: 230 25% 15%;
  --muted-foreground: 220 15% 55%;
  --accent: 42 80% 55%;
  --accent-foreground: 230 35% 7%;
  --border: 230 25% 20%;
  --gold: 42 80% 55%;
  --gold-light: 42 80% 70%;
  --deep-purple: 270 60% 30%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Text Gradients */
.text-gradient-gold {
  background: linear-gradient(135deg, hsl(var(--gold)), hsl(var(--gold-light)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glows */
.glow-purple {
  box-shadow: 0 0 30px hsl(var(--primary) / 0.2);
}
.glow-gold {
  box-shadow: 0 0 20px hsl(var(--gold) / 0.15);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: hsl(var(--foreground));
}
.navbar-brand svg {
  color: hsl(var(--accent));
}
.navbar-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.navbar-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s;
}
.navbar-links a:hover {
  color: hsl(var(--accent));
}
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  font-size: 1.5rem;
  cursor: pointer;
}
.navbar-mobile {
  display: none;
  flex-direction: column;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem;
  gap: 1rem;
}
.navbar-mobile.active {
  display: flex;
}
.navbar-mobile a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s;
}
.navbar-mobile a:hover {
  color: hsl(var(--accent));
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-toggle { display: block; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: hsl(var(--background) / 0.6);
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1rem;
}
.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--accent));
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero h1 .line2 {
  color: hsl(var(--foreground));
  -webkit-text-fill-color: hsl(var(--foreground));
  background: none;
}
.hero p {
  color: hsl(var(--muted-foreground));
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.btn-cta {
  display: inline-block;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.9rem 2.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 0 20px hsl(var(--gold) / 0.15);
}
.btn-cta:hover {
  background: hsl(var(--gold-light));
  transform: scale(1.05);
}
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, hsl(var(--background)), transparent);
}

/* Floating decorations */
.hero-deco {
  position: absolute;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}
.hero-deco.d1 { top: 5rem; left: 3rem; font-size: 4rem; animation: spin 30s linear infinite; }
.hero-deco.d2 { top: 10rem; right: 5rem; font-size: 3rem; }
.hero-deco.d3 { bottom: 12rem; left: 25%; font-size: 5rem; animation: spin 40s linear infinite reverse; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 5rem 1rem;
}
.section-alt {
  background: hsl(var(--secondary) / 0.3);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-header p {
  color: hsl(var(--muted-foreground));
  font-size: 1.1rem;
}

/* ===================== ZODIAC GRID ===================== */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.zodiac-card {
  background: linear-gradient(145deg, hsl(var(--card)), hsl(260 30% 12%));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.zodiac-card:hover {
  border-color: hsl(var(--accent) / 0.5);
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 20px hsl(var(--gold) / 0.15);
}
.zodiac-card .symbol {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
  transition: transform 0.3s;
}
.zodiac-card:hover .symbol {
  transform: scale(1.1);
}
.zodiac-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}
.zodiac-card .dates {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ===================== DAILY HOROSCOPE ===================== */
.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.daily-card {
  background: linear-gradient(145deg, hsl(var(--card)), hsl(260 30% 12%));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.daily-card:hover {
  border-color: hsl(var(--accent) / 0.5);
  box-shadow: 0 0 20px hsl(var(--gold) / 0.15);
}
.daily-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.daily-card-header .symbol {
  font-size: 1.5rem;
}
.daily-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.daily-card-header .dates {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
.daily-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* ===================== PERSONAL FORM ===================== */
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}
.form-card {
  background: linear-gradient(145deg, hsl(var(--card)), hsl(260 30% 12%));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 30px hsl(var(--primary) / 0.2);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.5);
  color: hsl(var(--foreground));
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: hsl(var(--accent));
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===================== ABOUT ===================== */
.about-icon {
  color: hsl(var(--accent));
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.about-text {
  color: hsl(var(--foreground) / 0.8);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsl(var(--accent) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--accent));
  flex-shrink: 0;
}

/* ===================== ZODIAC DETAIL ===================== */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: color 0.3s;
  background: none;
  border: none;
  font-family: 'Raleway', sans-serif;
}
.detail-back:hover {
  color: hsl(var(--accent));
}
.detail-card {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(145deg, hsl(var(--card)), hsl(260 30% 12%));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 0 30px hsl(var(--primary) / 0.2);
}
.detail-symbol {
  font-size: 4.5rem;
  text-align: center;
  margin-bottom: 1rem;
  animation: float 4s ease-in-out infinite;
}
.detail-card h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.detail-meta {
  text-align: center;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}
.detail-section {
  margin-bottom: 2rem;
}
.detail-section h2 {
  font-size: 1.25rem;
  color: hsl(var(--accent));
  margin-bottom: 0.75rem;
}
.detail-section p {
  color: hsl(var(--foreground) / 0.8);
  line-height: 1.8;
}
.detail-divider {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 1.5rem 0;
}
.detail-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid hsl(var(--border));
  padding: 2.5rem 1rem;
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.875rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s;
}
.footer-links a:hover {
  color: hsl(var(--accent));
}
.footer-copy {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ===================== ANIMATIONS (fade-in on scroll) ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--accent) / 0.5);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  z-index: 100;
  box-shadow: 0 0 20px hsl(var(--gold) / 0.2);
  animation: slideUp 0.3s ease, fadeOut 0.3s ease 3s forwards;
  max-width: 350px;
}
.toast h4 {
  font-size: 0.95rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}
.toast p {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(20px); pointer-events: none; }
}

/* Hide detail page by default */
#page-detail { display: none; }
#page-detail.active { display: block; }
#page-home.hidden { display: none; }
