/* ═══════════════════════════════════════════════════
   SMART LEARNING CENTER — PRACTICE PAGE
   Matches home.css design system exactly
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── VARIABLES (mirrors home.css) ──────────────── */
:root {
  --bg-base:        #080b0f;
  --bg-surface:     #0e1318;
  --bg-card:        #111820;
  --bg-card-hover:  #16202b;

  --green:          #00c47a;
  --green-dim:      #00c47a22;
  --green-glow:     #00c47a55;
  --gold:           #d4a843;
  --gold-dim:       #d4a84322;

  --text-primary:   #f0f4f8;
  --text-secondary: #8a9bb0;
  --text-muted:     #4a5a6a;

  --border:         #1e2d3d;
  --border-light:   #263748;

  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      18px;

  --transition:     all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card:    0 8px 40px rgba(0,0,0,0.45);
  --shadow-glow:    0 0 40px rgba(0, 196, 122, 0.12);
}

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* Radial glow background */
body::after {
  content: '';
  position: fixed;
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse, rgba(0,196,122,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ────────────────────────────────────── */
.header {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  height: 72px;
  background: rgba(8, 11, 15, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* ── LOGO ──────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo span {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ── SKILLS NAV ────────────────────────────────── */
.skills-container {
  position: static;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.skill-btn,
.nav-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Active skill buttons */
.skill-btn {
  background: var(--green-dim);
  color: var(--green);
  border-color: var(--green);
}

.skill-btn:hover {
  background: var(--green);
  color: #080b0f;
  box-shadow: 0 0 18px var(--green-glow);
  transform: translateY(-1px);
}

/* Disabled skill buttons */
.skill-btn.disabled {
  background: var(--bg-card);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.6;
}

.skill-btn.disabled:hover {
  transform: none;
  box-shadow: none;
  background: var(--bg-card);
  color: var(--text-muted);
}

/* Home button */
.home-link {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.home-link:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.home-link .icon {
  font-size: 1rem;
}

/* ── HERO ──────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: 5rem 3rem;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

/* Eyebrow */
.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

/* Title */
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.25s forwards;
}

/* ── BUTTONS ───────────────────────────────────── */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 280px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.btn-secondary {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
}

.btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--green);
  color: #080b0f;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.btn-primary:hover {
  background: #00e089;
  box-shadow: 0 0 28px var(--green-glow);
  transform: translateY(-2px);
}

.btn-primary .arrow {
  background: rgba(0,0,0,0.15);
  color: #080b0f;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-primary:hover .arrow {
  background: rgba(0,0,0,0.25);
  transform: translateX(3px);
}

/* ── HERO RIGHT / AVATAR ───────────────────────── */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.avatar-ring {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(
    var(--green) 0deg,
    var(--gold) 120deg,
    var(--green) 240deg,
    var(--green-dim) 360deg
  );
  box-shadow: 0 0 50px var(--green-glow);
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--bg-base);
  z-index: 0;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 60%;
  height: 60%;
  border-bottom: 4px solid var(--gold);
  border-right: 4px solid var(--gold);
  border-radius: 0 0 var(--radius-lg) 0;
  pointer-events: none;
  z-index: -1;
}

.avatar-ring img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
  .header {
    padding: 0 1.25rem;
    flex-wrap: wrap;
    height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 0.75rem;
  }

  .skills-container {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    text-align: center;
  }

  .hero-actions {
    width: 100%;
    align-items: stretch;
  }

  .hero-right { display: none; }
}

/* ── REGISTER MODAL ────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

/* top accent line */
.modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), #34d399);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  border-color: var(--green);
  color: var(--green);
}

.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.modal-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.modal-card > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.modal-field {
  text-align: left;
  margin-bottom: 1rem;
}

.modal-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.modal-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.modal-field input::placeholder { color: var(--text-muted); }

.modal-field input:focus {
  border-color: var(--green);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.modal-error {
  font-size: 0.82rem;
  color: #ff6b6b;
  min-height: 20px;
  text-align: left;
  padding-left: 0.25rem;
  margin-bottom: 0.5rem;
}

#modalSubmitBtn {
  width: 100%;
  padding: 0.9rem;
  background: var(--green);
  color: #080b0f;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

#modalSubmitBtn:hover {
  background: #00e089;
  box-shadow: 0 0 28px var(--green-glow);
  transform: translateY(-2px);
}

#modalSubmitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}