/* Landing page styles - uses typography from astro-base.css */

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

body {
  /* Use consistent font from astro-base.css instead of Georgia */
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: 0.2px;

  background: radial-gradient(
      1200px 800px at 10% -10%,
      #141825 0%,
      var(--bg, #0b0d13) 60%
    ),
    var(--bg, #0b0d13);
  color: var(--ink, #f7f2e9);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated star background - matches astro-base.css stars */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 1px;
  height: 1px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

/* Match astro-base.css body::before stars */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background: radial-gradient(1px 1px at 15% 20%, #fff 50%, transparent 60%),
    radial-gradient(1px 1px at 40% 80%, #fff 50%, transparent 60%),
    radial-gradient(1px 1px at 70% 30%, #fff 50%, transparent 60%),
    radial-gradient(1px 1px at 85% 60%, #fff 50%, transparent 60%),
    radial-gradient(1px 1px at 25% 65%, #fff 50%, transparent 60%);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  max-width: var(--grid, max(1000px, 64vw));
  margin: 0 auto;
}

.cosmic-symbol {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
  color: var(--gold, #d4af37);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.main-title {
  font-size: clamp(1.5rem, 8vw, 3.5rem);
  font-weight: 300500;
  margin: 0 0 1rem;
  color: var(--gold, #d4af37);
  letter-spacing: 0.5px;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  font-family: inherit;
}

.subtitle {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  margin-bottom: 1rem;
  opacity: 0.9;
  font-weight: 300;
  color: var(--muted, #b7b2a8);
  font-family: inherit;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
  margin: 3rem 0;
}

.feature-card {
  background: var(--panel, #0f121a);
  border: 1px solid var(--line2, #232a3d);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold, #d4af37);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.feature-card:hover::before {
  left: 100%;
}

/* Make the whole card clickable without showing link styling */
.feature-card-link {
  display: block;              /* anchor wraps the whole card */
  text-decoration: none;       /* no underline */
  color: inherit;              /* inherit card text color */
}

/* Be explicit for visited/hover states too */
.feature-card-link:link,
.feature-card-link:visited,
.feature-card-link:hover,
.feature-card-link:active {
  text-decoration: none;
  color: inherit;
}

/* Show it's interactive without underlines */
.feature-card { cursor: pointer; }
.feature-card-link:hover .feature-card,
.feature-card-link:focus-visible .feature-card {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* Keep accessibility: visible focus ring on keyboard nav */
.feature-card-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
  border-radius: 16px; /* match your card radius */
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  color: var(--gold, #d4af37);
}

.feature-title {
  font-size: 18px;
  margin: 0 0 1rem;
  color: var(--gold, #d4af37);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: inherit;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.8;
  color: var(--muted, #b7b2a8);
  font-family: inherit;
}

.cta-section {
  margin-top: 4rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.cta-text {
  font-size: 20px;
  margin-bottom: 1rem;
  opacity: 0.9;
  color: var(--ink, #f7f2e9);
  font-weight: 600;
  font-family: inherit;
}

.explore-hint {
  font-size: 15.5px;
  opacity: 0.7;
  font-style: italic;
  color: var(--muted, #b7b2a8);
  font-family: inherit;
}

/* Zodiac wheel decoration */
.zodiac-wheel {
  position: absolute;
  top: 50%;
  right: -200px;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  animation: rotate 60s linear infinite;
  z-index: 0;
}

.zodiac-wheel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 50%;
}

@keyframes rotate {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Additional decorative elements to match astro-base.css */
.landing-card {
  background: var(--panel, #0f121a);
  border: 1px solid var(--line, #1a1f2b);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
}

.landing-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold, #d4af37);
  letter-spacing: 0.5px;
  font-family: inherit;
}

.landing-subtitle {
  margin: -2px 0 16px;
  color: var(--muted, #b7b2a8);
  font-size: 13px;
  font-family: inherit;
}

/* Responsive design */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .zodiac-wheel {
    display: none;
  }

  .container {
    padding: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
  }

  .feature-card {
    padding: 18px;
  }

  .feature-title {
    font-size: 16px;
  }

  .feature-desc {
    font-size: 14px;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 12px;
  }

  .cosmic-symbol {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  .main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .subtitle {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
  }

  .feature-card {
    padding: 15px;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .feature-title {
    font-size: 15px;
  }

  .feature-desc {
    font-size: 13px;
  }

  .cta-text {
    font-size: 18px;
  }

  .explore-hint {
    font-size: 14px;
  }
}

/* Responsive iframe messaging */
.iframe-content {
  min-height: 100vh;
}
