/* ============================================================
   EAGLE ACADEMY — Learning Platform Styles
   Dashboard micro-learning, capsules, progression, badges
   ============================================================ */

/* ===== AUTH SCREEN ===== */
.ea-auth {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
}
.ea-auth__card {
  background: rgba(20, 18, 50, 0.8);
  border: 1px solid rgba(0, 181, 228, 0.12);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.ea-auth__logo { font-size: 2.5rem; font-weight: 900; color: #D4AF37; margin-bottom: 8px; }
.ea-auth__title { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.ea-auth__subtitle { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 28px; }
.ea-auth__form { text-align: left; }
.ea-auth__label { display: block; font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.ea-auth__input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(11, 14, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}
.ea-auth__input:focus { outline: none; border-color: #00BCD4; box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1); }
.ea-auth__btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #D4AF37, #F0D060);
  color: #1A1842;
  border: none;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  margin-top: 8px;
}
.ea-auth__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35); }
.ea-auth__toggle { margin-top: 20px; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.ea-auth__toggle a { color: #00BCD4; cursor: pointer; text-decoration: none; font-weight: 600; }
.ea-auth__error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 8px; padding: 10px; color: #ef4444; font-size: 0.8rem; margin-bottom: 16px; display: none; }

/* ===== DASHBOARD LAYOUT ===== */
.ea-dash {
  padding: 100px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.ea-dash__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.ea-dash__welcome h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.ea-dash__welcome p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.ea-dash__user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(20, 18, 50, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px 20px;
}
.ea-dash__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #F0D060);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A1842;
  font-weight: 900;
  font-size: 1rem;
}
.ea-dash__user-info { text-align: left; }
.ea-dash__user-name { font-weight: 700; color: #fff; font-size: 0.9rem; }
.ea-dash__user-level { font-size: 0.7rem; color: #D4AF37; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ===== STATS BAR ===== */
.ea-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.ea-stat-card {
  background: rgba(20, 18, 50, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}
.ea-stat-card:hover { border-color: rgba(0, 188, 212, 0.2); }
.ea-stat-card__value { font-size: 2rem; font-weight: 900; color: #00BCD4; margin-bottom: 4px; }
.ea-stat-card__label { font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

/* ===== PROGRESS BAR ===== */
.ea-progress { margin-bottom: 40px; }
.ea-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ea-progress__title { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }
.ea-progress__pct { font-size: 0.85rem; font-weight: 800; color: #D4AF37; }
.ea-progress__bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.ea-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #D4AF37, #F0D060);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===== PARCOURS TABS ===== */
.ea-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ea-tab {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}
.ea-tab:hover { border-color: rgba(0, 188, 212, 0.3); color: #fff; }
.ea-tab.active {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.15), rgba(0, 188, 212, 0.05));
  border-color: #00BCD4;
  color: #00BCD4;
}

/* ===== CAPSULE CARDS ===== */
.ea-capsules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.ea-capsule {
  background: rgba(20, 18, 50, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}
.ea-capsule:hover { border-color: rgba(0, 188, 212, 0.25); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.ea-capsule--completed { border-color: rgba(45, 212, 191, 0.2); }
.ea-capsule--locked { opacity: 0.5; pointer-events: none; }
.ea-capsule__thumb {
  width: 100%;
  height: 170px;
  background: linear-gradient(135deg, #0B0E14, #1A1842);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ea-capsule__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ea-capsule__play {
  position: absolute;
  width: 56px;
  height: 56px;
  background: rgba(212, 175, 55, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A1842;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: transform 0.3s;
}
.ea-capsule:hover .ea-capsule__play { transform: scale(1.1); }
.ea-capsule__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}
.ea-capsule__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ea-capsule__badge--new { background: #00BCD4; color: #1A1842; }
.ea-capsule__badge--done { background: #2DD4BF; color: #1A1842; }
.ea-capsule__content { padding: 20px; }
.ea-capsule__module { font-size: 0.65rem; font-weight: 700; color: #D4AF37; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; }
.ea-capsule__title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.ea-capsule__desc { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.5; }
.ea-capsule__progress {
  height: 3px;
  background: rgba(255,255,255,0.06);
  margin-top: 12px;
  border-radius: 100px;
  overflow: hidden;
}
.ea-capsule__progress-fill {
  height: 100%;
  background: #D4AF37;
  border-radius: 100px;
}

/* ===== BADGES / GAMIFICATION ===== */
.ea-badges {
  margin-bottom: 40px;
}
.ea-badges__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.ea-badges__grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.ea-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(20, 18, 50, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  min-width: 100px;
  text-align: center;
  transition: all 0.3s;
}
.ea-badge--earned { border-color: rgba(212, 175, 55, 0.3); }
.ea-badge--earned .ea-badge__icon { filter: none; }
.ea-badge__icon {
  font-size: 2rem;
  filter: grayscale(1) opacity(0.3);
  transition: filter 0.3s;
}
.ea-badge__name { font-size: 0.65rem; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
.ea-badge--earned .ea-badge__name { color: #D4AF37; }

/* ===== VIDEO PLAYER MODAL ===== */
.ea-player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.ea-player-overlay.active { display: flex; }
.ea-player {
  width: 100%;
  max-width: 900px;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.ea-player__video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.ea-player__video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ea-player__info { padding: 24px; }
.ea-player__title { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.ea-player__desc { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 16px; }
.ea-player__actions { display: flex; gap: 12px; }
.ea-player__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}
.ea-player__close:hover { background: rgba(255,255,255,0.2); }

/* ===== CELEBRATION ANIMATION ===== */
@keyframes ea-celebrate {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.ea-celebrate { animation: ea-celebrate 0.6s cubic-bezier(0.25, 1, 0.5, 1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .ea-dash { padding: 90px 16px 100px; }
  .ea-dash__header { flex-direction: column; align-items: flex-start; }
  .ea-capsules { grid-template-columns: 1fr; }
  .ea-stats { grid-template-columns: repeat(2, 1fr); }
  .ea-auth__card { padding: 32px 24px; }
  .ea-player { border-radius: 12px; }
}
