/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg-gradient: linear-gradient(135deg, #18030e 0%, #2a081c 40%, #420d2b 75%, #15020c 100%);
  --primary-pink: #ff2a7a;
  --secondary-pink: #ff65a3;
  --accent-gold: #ffd700;
  --rose-red: #e6005c;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 101, 163, 0.25);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --text-main: #ffffff;
  --text-muted: #e2b6cb;
  --card-glow: 0 8px 32px 0 rgba(255, 42, 122, 0.25);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Cairo', 'Outfit', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  direction: rtl;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Floating Hearts Background Container */
#hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -50px;
  color: rgba(255, 42, 122, 0.35);
  font-size: 1.5rem;
  user-select: none;
  animation: floatUp 12s linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(1.3);
    opacity: 0;
  }
}

/* App Wrapper */
.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 16px 60px 16px;
}

/* Header Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(42, 8, 28, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--card-glow);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo .heart-icon {
  font-size: 2.2rem;
  animation: pulseHeart 1.8s ease-in-out infinite;
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.brand-logo h1 {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ff65a3, #ff2a7a, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo .sub-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  direction: ltr;
}

.voice-tech-badge {
  background: rgba(255, 42, 122, 0.15);
  border: 1px solid var(--primary-pink);
  color: var(--secondary-pink);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  direction: ltr;
}

/* Hero & Welcome Section */
.hero-section {
  background: linear-gradient(135deg, rgba(255, 42, 122, 0.15), rgba(66, 13, 43, 0.6));
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-glow);
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.hero-english-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  color: var(--secondary-pink);
  margin-bottom: 12px;
  direction: ltr;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 20px auto;
}

.welcome-audio-btn {
  background: linear-gradient(135deg, var(--primary-pink), var(--rose-red));
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 25px rgba(255, 42, 122, 0.5);
  transition: all 0.3s ease;
}

.welcome-audio-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(255, 42, 122, 0.7);
}

.welcome-audio-btn.playing {
  animation: pulseGlow 1.2s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px var(--primary-pink); }
  100% { box-shadow: 0 0 35px var(--primary-pink), 0 0 50px var(--accent-gold); }
}

/* Video Showcase Card */
.video-showcase-card {
  background: rgba(26, 6, 18, 0.85);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--card-glow);
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.video-player-container {
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  background: #000;
  border: 2px solid var(--glass-border);
}

.video-player-container video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: contain;
}

/* Video Transcript & Subtitle Card */
.video-transcript-card {
  width: 100%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  text-align: center;
}

.phrase-header {
  margin-bottom: 14px;
}

.heart-badge {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-block;
}

.arabic-phrase-large {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255, 42, 122, 0.4);
  line-height: 1.4;
}

.phonetic-phrase {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--secondary-pink);
  margin-bottom: 6px;
  direction: ltr;
  font-style: italic;
}

.english-translation-large {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 18px;
  direction: ltr;
}

.meaning-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.audio-buttons-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.audio-speech-btn {
  background: rgba(255, 42, 122, 0.15);
  border: 1px solid var(--primary-pink);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.audio-speech-btn:hover {
  background: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 42, 122, 0.5);
}

.audio-speech-btn.playing {
  background: var(--accent-gold);
  color: #000000;
  border-color: var(--accent-gold);
  animation: pulseGlow 1s infinite alternate;
}

/* Responsive */
@media (max-width: 650px) {
  .arabic-phrase-large {
    font-size: 1.7rem;
  }
  .english-translation-large {
    font-size: 1.1rem;
  }
  .audio-buttons-row {
    flex-direction: column;
    width: 100%;
  }
  .audio-speech-btn {
    width: 100%;
    justify-content: center;
  }
}
