:root {
  --pink-primary: #e91e63;
  --pink-light: #f48fb1;
  --pink-dark: #c2185b;
  --bg-dark: #0f1419;
  --bg-card: #1a1f2e;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0a1e 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.navbar {
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--pink-primary);
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-primary);
  text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

.ribbon-icon {
  width: 40px;
  height: 40px;
  fill: var(--pink-primary);
  filter: drop-shadow(0 0 10px var(--pink-primary));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.back-link {
  text-decoration: none;
  font-weight: 600;
}

/* Added styles for navigation links container and button */
.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-button {
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 100px auto 2rem;
  padding: 0 2rem;
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.15) 0%, rgba(194, 24, 91, 0.08) 100%);
  border-radius: 24px;
  margin-bottom: 3rem;
  border: 2px solid rgba(233, 30, 99, 0.3);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}
/* --- الأنماط الأساسية لزر CTA (Call to Action) --- */
.cta-button {
  /* أساسيات الزر */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* مسافة بين الأيقونة والنص (إذا أضيفت أيقونة) */
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;

  /* الشكل والحجم */
  padding: 10px 20px; /* يمكن تعديلها حسب الرغبة */
  border-radius: 10px; /* حواف دائرية */

  /* الألوان والتدرج */
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-dark) 100%);
  color: var(--text-primary);
  border: none; /* إزالة الحدود */

  /* تأثيرات الحركة والظل */
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
}

.cta-button:hover {
  /* تأثير التحويم */
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.6);
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink-primary) 100%); /* تغيير بسيط في التدرج عند التحويم */
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.section {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(233, 30, 99, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(233, 30, 99, 0.2);
}

.section h2 {
  color: var(--pink-primary);
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.fact-card {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.15) 0%, rgba(233, 30, 99, 0.05) 100%);
  padding: 2rem;
  border-radius: 16px;
  border-right: 4px solid var(--pink-primary);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.fact-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(233, 30, 99, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.fact-card:hover {
  transform: translateX(-8px) translateY(-5px);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
}

.fact-card:hover::before {
  opacity: 1;
}

.fact-card h3 {
  color: var(--pink-light);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
}

.fact-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.symptoms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.symptom-item {
  background: rgba(233, 30, 99, 0.08);
  padding: 1.2rem;
  border-radius: 12px;
  border-right: 3px solid var(--pink-light);
  transition: all 0.3s;
  font-size: 1.05rem;
}

.symptom-item:hover {
  background: rgba(233, 30, 99, 0.15);
  transform: translateX(-5px);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.2);
}

.game-container {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.25) 0%, rgba(194, 24, 91, 0.15) 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  border: 2px solid rgba(233, 30, 99, 0.4);
}

.quiz-question {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.6;
}

.quiz-options {
  display: grid;
  gap: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.quiz-option {
  background: var(--bg-card);
  border: 2px solid var(--pink-primary);
  padding: 1.3rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.quiz-option::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(233, 30, 99, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.quiz-option:hover {
  background: var(--pink-primary);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

.quiz-option:hover::before {
  width: 300px;
  height: 300px;
}

.quiz-option.correct {
  background: #4caf50;
  border-color: #4caf50;
  animation: correctAnswer 0.5s;
}

@keyframes correctAnswer {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.quiz-option.wrong {
  background: #f44336;
  border-color: #f44336;
  animation: wrongAnswer 0.5s;
}

@keyframes wrongAnswer {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.quiz-option.disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.score-display {
  font-size: 1.8rem;
  color: var(--pink-light);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

.next-btn {
  background: linear-gradient(135deg, var(--pink-primary), var(--pink-dark));
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 16px;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.3s;
  display: none;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
}

.next-btn:hover {
  background: linear-gradient(135deg, var(--pink-dark), var(--pink-primary));
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.6);
}

.next-btn.visible {
  display: inline-block;
  animation: fadeInUp 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-message {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  display: none;
  line-height: 1.7;
}

.result-message.visible {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.result-message.correct {
  background: rgba(76, 175, 80, 0.25);
  border: 2px solid #4caf50;
  color: #81c784;
}

.result-message.wrong {
  background: rgba(244, 67, 54, 0.25);
  border: 2px solid #f44336;
  color: #ef9a9a;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(233, 30, 99, 0.2);
  border-radius: 10px;
  margin-bottom: 2.5rem;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink-primary), var(--pink-light));
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--pink-primary);
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
    margin-top: 80px;
  }

  .section {
    padding: 1.5rem;
  }

  .facts-grid,
  .symptoms-list {
    grid-template-columns: 1fr;
  }

  .game-container {
    padding: 2rem 1rem;
  }

  .navbar {
    padding: 1rem;
  }

  .hero {
    padding: 2.5rem 1.5rem;
  }
}

.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.heart {
  position: absolute;
  font-size: 24px;
  opacity: 0.3;
  animation: floatHeart 15s infinite;
}

@keyframes floatHeart {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}
/* Enhanced Responsive Styles */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    margin: 90px auto 2rem;
  }

  .nav-container {
    padding: 0 1rem;
  }
}

@media (max-width: 992px) {
  .facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
  }

  .section {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }

  .hero {
    padding: 3rem 1.5rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
    margin-top: 80px;
  }

  .section {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .facts-grid,
  .symptoms-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .facts-grid {
    margin-top: 1rem;
  }

  .game-container {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .quiz-options {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .quiz-option {
    padding: 1.1rem;
    font-size: 1rem;
  }

  .navbar {
    padding: 0.8rem 1rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 0.8rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .ribbon-icon {
    width: 35px;
    height: 35px;
  }

  .hero {
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    margin-bottom: 0.8rem;
  }

  .section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
  }

  .fact-card {
    padding: 1.5rem;
  }

  .symptom-item {
    padding: 1rem;
    font-size: 1rem;
  }

  .quiz-question {
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }

  .score-display {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }

  .next-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }

  .progress-bar {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    margin-top: 70px;
    padding: 0 0.8rem;
  }

  .section {
    padding: 1.2rem;
    border-radius: 14px;
    margin-bottom: 1rem;
  }

  .hero {
    padding: 1.5rem 0.8rem;
    border-radius: 16px;
  }

  .logo {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

  .ribbon-icon {
    width: 30px;
    height: 30px;
  }

  .nav-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .back-link {
    font-size: 0.9rem;
  }

  .facts-grid,
  .symptoms-list {
    gap: 0.8rem;
  }

  .fact-card {
    padding: 1.2rem;
    border-radius: 12px;
  }

  .fact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .symptom-item {
    padding: 0.8rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .game-container {
    padding: 1.2rem 0.8rem;
  }

  .quiz-options {
    gap: 0.8rem;
  }

  .quiz-option {
    padding: 1rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .quiz-question {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .score-display {
    font-size: 1.3rem;
  }

  .next-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .result-message {
    padding: 1rem;
    font-size: 0.95rem;
  }

  /* Improve touch targets for mobile */
  .cta-button,
  .quiz-option,
  .next-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 0.5rem;
  }

  .section {
    padding: 1rem;
  }

  .hero {
    padding: 1.2rem 0.5rem;
  }

  .fact-card {
    padding: 1rem;
  }

  .quiz-option {
    padding: 0.8rem;
  }

  .logo {
    font-size: 1rem;
  }

  .ribbon-icon {
    width: 25px;
    height: 25px;
  }
}

/* Orientation-specific adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .container {
    margin-top: 60px;
  }

  .hero {
    padding: 1.5rem;
  }

  .section {
    padding: 1.5rem;
  }

  .facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* High-resolution displays */
@media (min-resolution: 192dpi) {
  .ribbon-icon {
    filter: drop-shadow(0 0 8px var(--pink-primary));
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ribbon-icon {
    animation: none;
  }

  .heart {
    animation: none;
    opacity: 0.1;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .section {
    background: var(--bg-card);
  }

  .fact-card {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.2) 0%, rgba(233, 30, 99, 0.1) 100%);
  }
}

/* Print styles */
@media print {
  .navbar,
  .game-container,
  .next-btn {
    display: none;
  }

  .container {
    margin-top: 0;
  }

  .section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  body {
    background: white;
    color: black;
  }
}
