/* ════════════════════════════════════════
   HERO.CSS — Hero Section
════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 2rem 60px;
  position: relative;
  overflow: hidden;
}
.hero-in {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 3rem;
  align-items: center;
}
/* Prevent left text from bleeding into right panel */
.hero-wrap {
  min-width: 0;
  overflow: visible;
}
.hero-wrap { position: relative; }

/* Label */
.hero-label {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .35rem 1rem .35rem .5rem;
  background: rgba(0,229,255,.07);
  border: 1px solid rgba(0,229,255,.2); border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: var(--cyan);
  margin-bottom: 1.6rem;
  animation: fadeUp .7s ease both;
}
.hero-label-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--cyan); display: flex; align-items: center; justify-content: center;
}
.hero-label-dot svg { width: 14px; height: 14px; color: #04060f; }

/* Heading */
.hero-h1 {
  font-size: clamp(2.2rem,4.5vw,5.2rem);
  font-weight: 900; letter-spacing: -.04em; line-height: 1.0;
  margin-bottom: 1.4rem;
  animation: fadeUp .7s .1s ease both;
  word-break: break-word;
}
.hero-h1 .line2 {
  display: block;
  background: linear-gradient(90deg,var(--cyan),var(--violet),var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 200%;
  animation: gradShift 4s linear infinite;
}
@keyframes gradShift { 0%{background-position:0%} 100%{background-position:200%} }

/* Description */
.hero-desc {
  font-size: 1.1rem; color: var(--text2); line-height: 1.75;
  max-width: 560px; margin-bottom: 2.2rem;
  animation: fadeUp .7s .2s ease both;
}

/* Actions */
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp .7s .3s ease both;
}

/* Ticker / Stats */
.hero-ticker {
  margin-top: 3.5rem;
  animation: fadeUp .7s .45s ease both;
}
.ticker-label { font-size: .72rem; color: var(--text3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.ticker-row { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.ticker-item { display: flex; align-items: center; gap: .5rem; }
.ticker-num { font-size: 1.6rem; font-weight: 800; color: var(--cyan); font-variant-numeric: tabular-nums; }
.ticker-desc { font-size: .8rem; color: var(--text2); line-height: 1.3; }

/* ── Hero Right Side Visual Panel ── */
.hero-right-panel {
  position: relative;
  animation: fadeUp .9s .2s ease both;
}
.hero-dashboard {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 60px rgba(0,229,255,.06);
}
.hero-dashboard::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(0,229,255,.04),rgba(168,85,247,.04));
  pointer-events: none;
}
.hd-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.hd-title { font-size: .82rem; font-weight: 700; color: var(--text2); letter-spacing: .06em; text-transform: uppercase; }
.hd-live-badge {
  display: flex; align-items: center; gap: .4rem;
  padding: .25rem .65rem; border-radius: 999px;
  background: rgba(244,63,142,.12); border: 1px solid rgba(244,63,142,.25);
  font-size: .68rem; font-weight: 700; color: var(--pink);
}
.hd-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--pink);
  animation: pulse-dot 1.2s ease infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

/* Course Progress Cards */
.hd-courses { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.25rem; }
.hd-course-item {
  display: flex; align-items: center; gap: .85rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: .7rem 1rem;
  transition: border-color .2s;
}
.hd-course-item:hover { border-color: rgba(0,229,255,.2); }
.hd-course-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hd-course-icon svg { width: 18px; height: 18px; }
.hci-c { background: rgba(0,229,255,.1); }   .hci-c svg { color: var(--cyan); }
.hci-v { background: rgba(168,85,247,.1); }  .hci-v svg { color: var(--violet); }
.hci-e { background: rgba(244,63,142,.1); }  .hci-e svg { color: var(--pink); }
.hd-course-info { flex: 1; min-width: 0; }
.hd-course-name { font-size: .8rem; font-weight: 700; margin-bottom: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-progress-bar { height: 4px; background: var(--bg3); border-radius: 99px; overflow: hidden; }
.hd-progress-fill { height: 100%; border-radius: 99px; animation: growBar 1.5s ease both; }
.hd-progress-fill.pf-c { background: linear-gradient(90deg,var(--cyan),var(--violet)); }
.hd-progress-fill.pf-v { background: linear-gradient(90deg,var(--violet),var(--pink)); }
.hd-progress-fill.pf-e { background: linear-gradient(90deg,var(--pink),var(--gold)); }
@keyframes growBar { from{width:0} }
.hd-pct { font-size: .72rem; font-weight: 800; color: var(--cyan); flex-shrink: 0; }

/* Activity / Mini Stats */
.hd-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.25rem; }
.hd-mini-stat {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: .75rem;
  text-align: center;
}
.hd-mini-num { font-size: 1.4rem; font-weight: 900; letter-spacing: -.04em; margin-bottom: .15rem; }
.hd-mini-label { font-size: .68rem; color: var(--text3); font-weight: 600; letter-spacing: .04em; }

/* Upcoming class */
.hd-upcoming {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(0,229,255,.06); border: 1px solid rgba(0,229,255,.15);
  border-radius: 12px; padding: .85rem;
}
.hd-upcoming-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(0,229,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.hd-upcoming-icon svg { width: 20px; height: 20px; color: var(--cyan); }
.hd-upcoming-label { font-size: .7rem; color: var(--text3); margin-bottom: .15rem; }
.hd-upcoming-title { font-size: .82rem; font-weight: 700; }
.hd-upcoming-time { font-size: .72rem; color: var(--cyan); font-weight: 600; }

/* Floating notification badge */
.hero-float-notif {
  position: absolute;
  top: -18px; right: -18px;
  background: var(--card2); border: 1px solid rgba(0,229,255,.2);
  border-radius: 14px; padding: .65rem .9rem;
  display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  animation: floatNotif 3s ease-in-out infinite;
  min-width: 160px;
}
@keyframes floatNotif {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.fn-ava { width: 28px; height: 28px; border-radius: 50%; background: rgba(0,229,255,.15); display: flex; align-items: center; justify-content: center; }
.fn-ava svg { width: 15px; height: 15px; color: var(--cyan); }
.fn-text-main { font-size: .72rem; font-weight: 700; }
.fn-text-sub { font-size: .65rem; color: var(--text3); }

/* Bottom float */
.hero-float-score {
  position: absolute;
  bottom: -16px; left: -22px;
  background: linear-gradient(135deg,rgba(16,185,129,.15),rgba(0,229,255,.08));
  border: 1px solid rgba(16,185,129,.25);
  border-radius: 14px; padding: .7rem 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  animation: floatScore 3.5s ease-in-out infinite;
  display: flex; align-items: center; gap: .6rem;
}
@keyframes floatScore {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.fs-icon { font-size: 1.4rem; }
.fs-label { font-size: .7rem; color: var(--text2); }
.fs-val { font-size: 1rem; font-weight: 900; color: var(--green); }

/* Responsive */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0,1fr) 380px; gap: 2rem; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right-panel { max-width: 480px; margin: 0 auto; }
  .hero-float-notif { display: none; }
  .hero-float-score { display: none; }
}
