/* ═══════════════════════════════════════════════
   vr-world.css — VR World page specific styles
   Extends erigo-base.css
   ═══════════════════════════════════════════════ */

/* Override hero background for VR page — darker, more space-like */
.hero-vr {
  background: linear-gradient(160deg, #080e14 0%, #060809 70%);
  min-height: 78vh;
}
.hero-vr::before {
  background: radial-gradient(ellipse at 60% 40%,
    rgba(124,109,250,0.08) 0%,
    rgba(0,200,150,0.04) 40%,
    transparent 70%);
}

/* ─── ISLAND PREVIEW ─────────────────────────── */
.island-section {
  padding: 0 3rem 5rem;
  background: linear-gradient(180deg, #060809 0%, #0a0c0e 100%);
}
.island-card {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  max-width: 1100px;
}
.island-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(124,109,250,0.03),
    rgba(0,200,150,0.03));
  pointer-events: none;
}
.island-visual {
  width: 100%;
  height: 300px;
  background: #060809;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.island-visual svg { width: 100%; height: 100%; }

.floating-label {
  position: absolute;
  background: rgba(8,10,14,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  padding: 0.32rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}
.fl-teal   { color: #00c896; border-color: rgba(0,200,150,0.2); }
.fl-purple { color: #7c6dfa; border-color: rgba(124,109,250,0.2); }
.fl-blue   { color: #4fc3f7; border-color: rgba(79,195,247,0.2); }
.fl-tl { top: 12px; left: 12px; }
.fl-tr { top: 12px; right: 12px; }
.fl-br { bottom: 12px; right: 12px; }

/* ─── STATS BAR ──────────────────────────────── */
.stats-bar {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #0d1117;
}
.stat-item {
  flex: 1;
  padding: 1.8rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(0,200,150,0.03); }
.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.35rem;
  color: #fff;
}
.stat-number span { color: #00c896; }
.stat-label { font-size: 0.8rem; color: #8a9ab0; font-weight: 400; }

/* ─── FEATURES SECTION ───────────────────────── */
.features-section {
  padding: 5rem 3rem;
  background: #0a0c0e;
}
.features-section .section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00c896;
  margin-bottom: 1rem;
}
.features-section .section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 580px;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  max-width: 1100px;
}
.feature-card {
  background: #0d1117;
  padding: 2rem;
  transition: background 0.2s;
}
.feature-card:hover { background: #111820; }
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.fi-teal   { background: rgba(0,200,150,0.1); }
.fi-purple { background: rgba(124,109,250,0.1); }
.fi-blue   { background: rgba(79,195,247,0.1); }
.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}
.feature-desc { font-size: 0.85rem; color: #8a9ab0; line-height: 1.6; }

/* ─── HOW IT WORKS ───────────────────────────── */
.how-section {
  background: #0d1117;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 3rem;
}
.how-section .section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00c896;
  margin-bottom: 1rem;
}
.how-section .section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  max-width: 500px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  max-width: 1100px;
}
.step {
  padding: 2rem 1.8rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: #0d1117;
}
.step:last-child { border-right: none; }
.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(0,200,150,0.12);
  line-height: 1;
  margin-bottom: 0.9rem;
  font-family: 'Inter', sans-serif;
}
.step-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.45rem; }
.step-desc  { font-size: 0.82rem; color: #8a9ab0; line-height: 1.55; }

/* ─── MODAL ──────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  place-items: center;
}
.modal-overlay.active { display: grid; }
.modal {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  animation: modalIn 0.22s ease;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7);
}
@keyframes modalIn {
  from { opacity:0; transform:scale(0.93) translateY(14px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.modal-icon { font-size: 2.4rem; margin-bottom: 1.1rem; }
.modal h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}
.modal p {
  color: #8a9ab0;
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}
.modal-actions { display:flex; gap:0.8rem; justify-content:center; }
.modal-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #8a9ab0;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s;
}
.modal-cancel:hover { border-color: rgba(255,255,255,0.2); color: #fff; }
.modal-confirm {
  background: #0d9e78;
  border: none;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.15s;
}
.modal-confirm:hover { background: #0bb88a; transform: translateY(-1px); }

/* ─── VR hero button override ────────────────── */
.btn-vr-hero {
  background: linear-gradient(135deg, #7c6dfa, #4fc3f7);
  border: none;
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 0 24px rgba(124,109,250,0.25);
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}
.btn-vr-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(124,109,250,0.4);
}

.btn-vr-create {
  background: transparent;
  border: 1px solid rgba(0,200,150,0.4);
  color: #00c896;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}
.btn-vr-create:hover {
  background: rgba(0,200,150,0.08);
  border-color: rgba(0,200,150,0.7);
  transform: translateY(-2px);
}

/* ─── Create Course Modal ─────────────────────── */
.modal-create {
  max-width: 540px;
  text-align: left;
  position: relative;
}
.modal-create h2 { text-align: left; }
.modal-create > p { text-align: left; }
.modal-link { color: #00c896; text-decoration: underline; }
.modal-x {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #8a9ab0;
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.modal-x:hover { border-color: rgba(255,255,255,0.25); color: #fff; }

.create-form { margin-top: 0.5rem; }
.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9ab0;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  resize: none;
}
.form-input:focus {
  border-color: rgba(0,200,150,0.45);
  box-shadow: 0 0 0 3px rgba(0,200,150,0.1);
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a9ab0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2rem;
  cursor: pointer;
}
.form-select option { background: #0d1117; color: #fff; }
.form-textarea { height: 90px; line-height: 1.5; }

.form-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #8a9ab0;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.chip:hover { border-color: rgba(0,200,150,0.3); color: #ccc; }
.chip.active {
  background: rgba(0,200,150,0.12);
  border-color: rgba(0,200,150,0.5);
  color: #00c896;
}

.modal-actions-create {
  margin-top: 1.2rem;
  justify-content: flex-end;
}

/* ─── Success state ───────────────────────────── */
.create-success {
  text-align: center;
  padding: 1rem 0 0.5rem;
}
.success-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.create-success h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.create-success p { color: #8a9ab0; font-size: 0.88rem; line-height: 1.6; }
.create-success span { color: #00c896; font-weight: 700; }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .island-section, .features-section, .how-section { padding: 3rem 1.5rem; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
}