/* ============================================
   OurDream.ai — Custom Styles
   (Ported from app/globals.css)
   ============================================ */

:root {
  --background: #0f0f0f;
  --foreground: #ffffff;
  --primary: #db2777;
  --primary-foreground: #ffffff;
  --secondary: #1a0933;
  --accent: #9333ea;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --border: #404040;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
}

/* ============================================
   Custom scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #525252;
}

/* Hide scrollbar (for carousel) */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================
   Gradient text
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, #db2777 0%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ============================================
   Gradient buttons
   ============================================ */
.gradient-button {
  background: linear-gradient(135deg, #db2777 0%, #9333ea 100%);
  transition: all 0.3s ease;
  color: #fff;
}

.gradient-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(219, 39, 119, 0.4);
}

/* ============================================
   Glowing effects
   ============================================ */
.glow-pink {
  box-shadow: 0 0 40px rgba(219, 39, 119, 0.25);
}

.glow-purple {
  box-shadow: 0 0 40px rgba(147, 51, 234, 0.25);
}

/* ============================================
   Card hover
   ============================================ */
.card-hover {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(219, 39, 119, 0.35);
}

/* ============================================
   Float animation
   ============================================ */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

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

/* ============================================
   Typing cursor
   ============================================ */
.typing-cursor {
  display: inline-block;
  animation: blink 1s infinite;
  color: #db2777;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============================================
   Reveal animations
   ============================================ */
.fade-in {
  animation: fadeIn 0.8s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Navbar scrolled state
   ============================================ */
#navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   Character card
   ============================================ */
.character-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform .4s ease, box-shadow .4s ease;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}

.character-card:hover {
  transform: scale(1.04);
  box-shadow: 0 25px 60px rgba(219, 39, 119, 0.35);
}

.character-card .char-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}

.character-card:hover .char-bg {
  transform: scale(1.08);
}

.character-card .char-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.character-card .char-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 2;
}

.character-card .char-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(219, 39, 119, 0.2);
  border: 1px solid rgba(219, 39, 119, 0.4);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: #fbcfe8;
}

.character-card .char-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

.character-card .char-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(24, 24, 27, 0.6);
  overflow: hidden;
  transition: border-color .3s;
}

.faq-item.open {
  border-color: rgba(219, 39, 119, 0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(219, 39, 119, 0.15);
  color: #f472b6;
  transition: transform .3s, background .3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(219, 39, 119, 0.3);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #a3a3a3;
  line-height: 1.7;
}

/* ============================================
   Testimonial slide
   ============================================ */
.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 0.5rem;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.08), rgba(147, 51, 234, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all .3s;
}

.testimonial-dot.active {
  width: 24px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #db2777, #9333ea);
}

/* ============================================
   Mobile optimizations
   ============================================ */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2.75rem !important;
    line-height: 1.05;
  }

  .testimonial-card {
    padding: 1.75rem;
  }

  .character-card {
    flex: 0 0 240px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
