/* ISOLAD Next Version: styles.css */

:root {
  --bg: #020617;
  --bg-soft: #050815;
  --card: #0b1020;
  --accent: #22d3ee;
  --accent-secondary: #a855f7;
  --accent-dark: #06b6d4;
  --text: #f9fafb;
  --text-dim: #9ca3af;
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}


body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(34,211,238,0.18), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(168,85,247,0.18), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(15,23,42,0.9), #020617 70%);
  color: var(--text);
}

/* Links & Buttons */
a {
  color: var(--accent);
  text-decoration: none;
}

.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #000;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-block;
  transition: 0.18s ease-out;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(34,211,238,0.35);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(168,85,247,0.45);
}

/* HEADER */
header {
  padding: 18px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148,163,184,0.2);
  z-index: 20;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(34,211,238,0.6);
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 24px;
  color: var(--text-dim);
  font-size: 0.95rem;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  transition: width 0.18s ease-out;
}

nav a:hover {
  color: #e5e7eb;
}

nav a:hover::after {
  width: 100%;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 6px;
}

.lang-btn {
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--text-dim);
  padding: 6px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: 0.18s;
}

.lang-btn.active,
.lang-btn:hover {
  border-color: var(--accent);
  color: #e5e7eb;
  box-shadow: 0 0 8px rgba(34,211,238,0.4);
}

/* HERO */
.hero {
  padding: 80px 5% 60px;
  max-width: 880px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 30px;
}

/* Section titles */
.section-title {
  font-size: 1.8rem;
  margin: 60px 0 20px;
  font-weight: 600;
}

.section-title-padded {
  padding-left: 5%;
}

/* CARDS / TRACK GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 0 5%;
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,0.25);
  transition: 0.25s;
  box-shadow: 0 20px 40px rgba(15,23,42,0.65);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(34,211,238,0.35);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* DASHBOARD */
.dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 5%;
}

.dash-header {
  margin-bottom: 30px;
}

.text-dim {
  color: var(--text-dim);
}

.progress-box {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 1px solid rgba(148,163,184,0.3);
  box-shadow: 0 18px 30px rgba(15,23,42,0.7);
}

.progress-box h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.mission-box {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,0.3);
  box-shadow: 0 18px 30px rgba(15,23,42,0.7);
}

.mission-box h2 {
  margin-bottom: 10px;
}

.mission-step {
  background: #050816;
  padding: 12px;
  border-radius: var(--radius);
  margin-top: 10px;
}

/* TUTOR SECTION */
.tutor {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 5%;
}

.tutor-card {
  background: radial-gradient(circle at 0% 0%, rgba(34,211,238,0.16), transparent 55%),
              radial-gradient(circle at 100% 0%, rgba(168,85,247,0.16), transparent 55%),
              var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,0.3);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15,23,42,0.9);
}

.tutor-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.tutor-text {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.tutor-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.tutor-input {
  width: 100%;
  background: #050816;
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,0.35);
  padding: 10px 12px;
  color: var(--text);
  resize: vertical;
  margin-bottom: 14px;
}

.tutor-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(34,211,238,0.5);
}

.tutor-btn {
  margin-top: 4px;
}

.tutor-result {
  margin-top: 20px;
  background: #050816;
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid rgba(148,163,184,0.35);
}

.tutor-result h3 {
  margin-bottom: 8px;
}

.tutor-result ol {
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* TUTOR EMAIL SIGNUP */
.tutor-signup {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,0.35);
}

.tutor-signup h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.tutor-signup-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.tutor-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tutor-email-input {
  flex: 1 1 220px;
  min-width: 0;
  background: #050816;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35);
  padding: 10px 12px;
  color: var(--text);
}

.tutor-email-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(34,211,238,0.45);
}

.tutor-email-btn {
  flex: 0 0 auto;
}

/* FOOTER */
footer {
  padding: 40px 5%;
  text-align: center;
  color: var(--text-dim);
  margin-top: 80px;
  font-size: 0.9rem;
}

/* BASIC RESPONSIVE TWEAKS */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  nav a {
    margin-left: 16px;
  }

  header {
    gap: 10px;
  }
}
/* TRACK PAGE LAYOUT */
.track-main {
  padding-bottom: 60px;
}

.track-hero {
  padding: 80px 5% 30px;
  max-width: 880px;
}

.track-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.track-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.track-intro {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.track-back-btn {
  margin-top: 6px;
}

/* Lesson list */
.lesson-list {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 5%;
}

.lesson-title {
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.lesson-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,0.35);
  padding: 20px 20px 16px;
  margin-bottom: 16px;
  box-shadow: 0 14px 24px rgba(15,23,42,0.7);
}

.lesson-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.lesson-card p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.lesson-mission {
  margin-top: 8px;
  color: #e5e7eb;
}

/* Track 1 card link on home page */
.track-link-card .track-link {
  display: block;
  color: inherit;
}

.track-link-pill {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--accent);
}

/* HEADER RIGHT AREA */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-greeting {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Small buttons */
.btn-small {
  padding: 8px 14px;
  font-size: 0.8rem;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid rgba(148,163,184,0.5);
}

/* AUTH MODAL */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.auth-dialog {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(148,163,184,0.4);
  padding: 24px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
  position: relative;
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
}

.auth-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.auth-input {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.5);
  background: #050816;
  color: var(--text);
}

.auth-toggle {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.auth-mode-btn {
  flex: 1;
  padding: 6px 0;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.auth-mode-btn.active {
  border-color: var(--accent);
  color: #e5e7eb;
  box-shadow: 0 0 10px rgba(34,211,238,0.4);
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-message {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 720px) {
  header {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }

  nav a {
    margin: 0 10px;
  }

  .lang-switcher {
    order: 2;
  }

  .hero {
    padding-top: 60px;
  }

  .tutor-form {
    flex-direction: column;
    align-items: stretch;
  }

  .tutor-email-btn {
    width: 100%;
    text-align: center;
  }
}
