/* ───────────────────────────────────────────────────────────────
   Vedic Astrology AI — Custom Styles
   ─────────────────────────────────────────────────────────────── */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Base ────────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f0a1e 0%, #1a1035 30%, #0d1b2a 70%, #0a0f1a 100%);
  min-height: 100vh;
  color: #e2e8f0;
}

/* Hide empty ad spaces completely */
ins.adsbygoogle[data-ad-status="unfilled"],
#ad-banner:has(ins[data-ad-status="unfilled"]) {
  display: none !important;
}

/* Animated stars background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, .15), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, .1), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, .12), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, .08), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, .14), transparent);
  background-size: 200px 100px;
  animation: twinkle 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes twinkle {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

/* ── Glass card ──────────────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── AI bubble ───────────────────────────────────────────────── */
.ai-bubble {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.25), rgba(30, 27, 75, 0.4));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.ai-content h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: #fcd34d;
  /* amber-300 */
}

.ai-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #fde68a;
  /* amber-200 */
}

.ai-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.ai-content ul,
.ai-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.ai-content ul {
  list-style-type: disc;
}

.ai-content ul ul,
.ai-content ol ul {
  list-style-type: circle;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.ai-content ol {
  list-style-type: decimal;
}

.ai-content li {
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.ai-content strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* ── Form inputs ─────────────────────────────────────────────── */
.form-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Date & time inputs */
input[type="date"],
input[type="time"] {
  color-scheme: dark;
}

/* ── Submit button ───────────────────────────────────────────── */
.submit-btn {
  background: linear-gradient(135deg, #d97706, #ea580c, #c2410c);
  background-size: 200% 200%;
  animation: shimmer 3s ease infinite;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.35);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ── Share buttons ───────────────────────────────────────────── */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.share-btn:hover {
  transform: scale(1.1);
}

/* ── Typing dots ─────────────────────────────────────────────── */
.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  animation: bounce 1.4s infinite ease-in-out;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0.4);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Slide-up animation ──────────────────────────────────────── */
.animate-slide-up {
  animation: slideUp 0.4s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Toast ───────────────────────────────────────────────────── */
#toast {
  transition: opacity 0.3s ease;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}

/* ── Ornament glow ───────────────────────────────────────────── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(168, 85, 247, 0.12);
  top: -80px;
  left: -80px;
}

.glow-orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(217, 119, 6, 0.08);
  bottom: -60px;
  right: -60px;
}

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 640px) {
  .form-input {
    font-size: 1rem;
    padding: 0.75rem;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 0.85rem;
  }
}