/* LearningwithME – hub landing page */

:root {
  --purple: #6B46C1;
  --blue: #3182CE;
  --gold: #F6AD55;
  --green: #38A169;
  --pink: #ED64A6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  background: linear-gradient(160deg, #e0f2fe 0%, #f3e8ff 40%, #fef3c7 100%);
  min-height: 100vh;
  color: #1f2937;
}

/* Header */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
.hero-logo {
  display: block;
  margin: 0 auto 1rem;
  max-height: clamp(140px, 28vw, 200px);
  width: auto;
  max-width: min(260px, 80vw);
  object-fit: contain;
}
.nav-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  background: #ede9fe;
  border-color: var(--purple);
  color: var(--purple);
}

/* Hero */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.hero {
  text-align: center;
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: var(--purple);
  margin-bottom: 0.5rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: #4b5563;
}

/* Subject worlds grid */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .worlds-grid { grid-template-columns: repeat(3, 1fr); }
}

.world-card {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  padding: 0.75rem 0.75rem 1rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(107, 70, 193, 0.12);
  border: 3px solid #e9d5ff;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.world-card-live {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.world-card-live:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 32px rgba(107, 70, 193, 0.22);
  border-color: var(--purple);
}
.world-card-soon {
  opacity: 0.72;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.world-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  letter-spacing: 0.02em;
}
.banner-wip {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  border: 2px solid #fff;
}
.banner-soon {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: white;
  border: 2px solid #fff;
}

.world-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 0.6rem;
  margin-top: 1.5rem;
}
.world-card h2 {
  font-size: 1.25rem;
  color: var(--purple);
  margin-bottom: 0.2rem;
}
.world-card p {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.3;
}

.footer-note {
  text-align: center;
  margin-top: 2.5rem;
  color: #6b7280;
  font-size: 0.95rem;
}
.footer-note a { color: var(--blue); font-weight: 700; }

/* About page */
.about-page {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}
.about-card {
  background: white;
  border-radius: 2rem;
  padding: 2rem 1.75rem;
  max-width: 680px;
  box-shadow: 0 10px 40px rgba(107, 70, 193, 0.1);
  border: 3px solid #e9d5ff;
}
.about-card h1 {
  font-size: 2rem;
  color: var(--purple);
  margin-bottom: 1rem;
  text-align: center;
}
.about-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  text-align: center;
  color: #374151;
}
.about-card section {
  margin-bottom: 1.5rem;
}
.about-card h2 {
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.about-card p {
  line-height: 1.65;
  color: #4b5563;
  margin-bottom: 0.75rem;
}
.about-quote {
  background: linear-gradient(135deg, #faf5ff, #fef3c7);
  border-radius: 1.25rem;
  padding: 1.25rem;
  border-left: 5px solid var(--gold);
  margin-top: 1.5rem;
}
.about-quote p {
  font-style: italic;
  font-size: 1.05rem;
  color: #374151;
}
.about-sign {
  text-align: right;
  font-style: normal !important;
  font-weight: 700;
  color: var(--purple) !important;
  margin-top: 0.5rem !important;
}
.btn-home {
  display: block;
  text-align: center;
  margin-top: 2rem;
  padding: 0.9rem 1.5rem;
  background: var(--purple);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 1.25rem;
  transition: transform 0.15s;
}
.btn-home:hover { transform: scale(1.03); }

/* Coming soon toast */
.soon-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #4b5563;
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 200;
  transition: opacity 0.3s;
}
.soon-toast.hidden {
  opacity: 0;
  pointer-events: none;
}