/* ================================================================
   CureX Academy — Global Styles
   Theme: Deep Purple (#1c0735) + Mint Teal (#33dea1)
   Tagline: LEARN DEEP. CARE RIGHT.
   ================================================================ */

/* === Base === */
html { scroll-behavior: smooth; }
body { background-color: #1c0735; color: #fff; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #120524; }
::-webkit-scrollbar-thumb { background: #33dea1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2bc190; }

/* === Selection === */
::selection { background: #33dea144; color: #33dea1; }

/* === Glow Effects === */
.teal-glow { box-shadow: 0 0 20px rgba(51, 222, 161, 0.25); }
.teal-glow-sm { box-shadow: 0 0 10px rgba(51, 222, 161, 0.15); }
.teal-text-glow { text-shadow: 0 0 20px rgba(51, 222, 161, 0.5); }

/* === Gradient Backgrounds === */
.hero-gradient {
  background: linear-gradient(135deg, #0e0225 0%, #1c0735 40%, #1a0a45 70%, #0d1a35 100%);
  position: relative;
  overflow: hidden;
}
.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51,222,161,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51,178,222,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-dark { background-color: #120524; }
.section-card { background: #1e0b38; border: 1px solid #3d1878; border-radius: 1rem; }

.teal-gradient-bg {
  background: linear-gradient(135deg, #33dea1 0%, #2bc190 50%, #1a8f6a 100%);
}

.purple-card {
  background: #1e0b38;
  border: 1px solid #3d1878;
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.purple-card:hover {
  border-color: #33dea1;
  box-shadow: 0 8px 30px rgba(51, 222, 161, 0.12);
  transform: translateY(-2px);
}

/* === Course Cards === */
.course-card {
  background: linear-gradient(145deg, #1e0b38, #250d45);
  border: 1px solid #3d1878;
  border-radius: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}
.course-card:hover {
  border-color: #33dea1;
  box-shadow: 0 12px 40px rgba(51, 222, 161, 0.15);
  transform: translateY(-4px);
}

/* === Buttons === */
.btn-teal {
  background: linear-gradient(135deg, #33dea1, #2bc190);
  color: #1c0735;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}
.btn-teal:hover {
  box-shadow: 0 6px 25px rgba(51, 222, 161, 0.4);
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-outline {
  background: transparent;
  color: #33dea1;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  border: 2px solid #33dea1;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-outline:hover {
  background: rgba(51, 222, 161, 0.1);
  box-shadow: 0 4px 15px rgba(51, 222, 161, 0.2);
}

.btn-ghost {
  background: rgba(51,222,161,0.08);
  color: #33dea1;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(51,222,161,0.2);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
}
.btn-ghost:hover {
  background: rgba(51,222,161,0.15);
  border-color: rgba(51,222,161,0.4);
}

/* === Badge === */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-teal { background: rgba(51,222,161,0.15); color: #33dea1; border: 1px solid rgba(51,222,161,0.3); }
.badge-purple { background: rgba(143,95,255,0.15); color: #c4a8e0; border: 1px solid rgba(143,95,255,0.3); }
.badge-gold { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.badge-blue { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }

/* === Section Headings === */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.section-subtitle {
  color: #8b6aaa;
  margin-top: 0.5rem;
  font-size: 1rem;
}
.teal-line {
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, #33dea1, #2bc190);
  border-radius: 2px;
  margin: 0.75rem 0;
}

/* === Stats === */
.stat-card {
  text-align: center;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(51, 222, 161, 0.06);
  border: 1px solid rgba(51, 222, 161, 0.15);
}
.stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #33dea1, #2bc190);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: #8b6aaa; font-size: 0.75rem; margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* === Feature Icon === */
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(51, 222, 161, 0.1);
  border: 1px solid rgba(51, 222, 161, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  color: #33dea1;
}

/* === Form Inputs === */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #250a47;
  border: 1px solid #3d1878;
  color: #fff;
  font-size: 0.875rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: #33dea1; box-shadow: 0 0 0 3px rgba(51,222,161,0.1); }
.form-input::placeholder { color: #5a3a80; }

.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: #c4a8e0; margin-bottom: 0.4rem; }

/* === Tables === */
.dark-table { width: 100%; border-collapse: collapse; }
.dark-table th { padding: 0.75rem 1rem; text-align: left; font-size: 0.75rem; text-transform: uppercase; color: #8b6aaa; border-bottom: 1px solid #3d1878; }
.dark-table td { padding: 0.875rem 1rem; font-size: 0.875rem; color: #c4a8e0; border-bottom: 1px solid #2d1050; }
.dark-table tr:hover td { background: rgba(51,222,161,0.04); }

/* === Video Cards === */
.video-card { position: relative; overflow: hidden; border-radius: 1rem; cursor: pointer; }
.video-card img { transition: transform 0.3s ease; }
.video-card:hover img { transform: scale(1.05); }
.video-overlay {
  position: absolute; inset: 0;
  background: rgba(28,7,53,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.video-card:hover .video-overlay { opacity: 1; }
.play-btn {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #33dea1, #2bc190);
  display: flex; align-items: center; justify-content: center;
  color: #1c0735; font-size: 1.25rem;
  box-shadow: 0 4px 20px rgba(51,222,161,0.5);
}

/* === Announcement Bar === */
.announcement-bar {
  background: linear-gradient(90deg, #33dea1, #2bc190);
  color: #1c0735;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
}

/* === Membership Lock === */
.locked-overlay {
  position: absolute; inset: 0;
  background: rgba(28,7,53,0.9);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 1rem;
  gap: 0.5rem;
}

/* === Hero Pulse Animation === */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(51,222,161,0.2); }
  50% { box-shadow: 0 0 50px rgba(51,222,161,0.4); }
}
.pulse-glow { animation: pulse-glow 3s infinite; }

/* === Toast === */
@keyframes slide-up {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}
#toast { animation: slide-up 0.3s ease; }

/* === Typing animation for hero === */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cursor { animation: blink 1s infinite; }

/* === Category pill === */
.cat-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid #3d1878;
  font-size: 0.875rem; font-weight: 500;
  background: #1e0b38;
  color: #c4a8e0;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.cat-pill:hover, .cat-pill.active {
  border-color: #33dea1;
  background: rgba(51,222,161,0.1);
  color: #33dea1;
}

/* === Divider === */
.divider { height: 1px; background: linear-gradient(90deg, transparent, #3d1878, transparent); margin: 2rem 0; }

/* === Scrolling ticker === */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-inner { animation: ticker 30s linear infinite; display: flex; gap: 3rem; white-space: nowrap; }

/* === Nav link active === */
a[data-active="true"] { color: #33dea1 !important; }
