/* ═══════════════════════════════════════════════════════════════
   AURORA DESIGN SYSTEM — World of Lucid Dreaming
   Replaces: normalize.css, skeleton.css, glyphicons.css, cre8ve.css
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg: #080d18;
  --card: rgba(255,255,255,0.035);
  --card-border: rgba(255,255,255,0.07);
  --card-hover: rgba(255,255,255,0.06);
  --purple: #a855f7;
  --purple-dim: #7c3aed;
  --teal: #2dd4bf;
  --teal-dim: #14b8a6;
  --pink: #f472b6;
  --blue: #60a5fa;
  --text: #e4e2f0;
  --text-dim: #9994b8;
  --heading: 'Sora', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

/* ── RESET ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; transition: 0.3s; }
a:hover { color: #5eead4; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style-position: outside; }

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  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='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ── MESH GRADIENT BACKGROUND ── */
.mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mesh .orb { position: absolute; border-radius: 50%; filter: blur(130px); opacity: 0.13; animation: drift 22s ease-in-out infinite alternate; }
.orb-1 { width: 650px; height: 650px; background: var(--teal); top: -20%; right: -5%; }
.orb-2 { width: 500px; height: 500px; background: var(--purple); bottom: -10%; left: -10%; animation-delay: -8s; }
.orb-3 { width: 350px; height: 350px; background: var(--blue); top: 40%; left: 50%; animation-delay: -15s; }
@keyframes drift {
  0%   { transform: translate(0,0) scale(1) }
  50%  { transform: translate(40px,-30px) scale(1.1) }
  100% { transform: translate(-20px,40px) scale(0.95) }
}

/* ── LAYOUT ── */
.container { width: 90%; max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
/* Legacy Skeleton grid compat — make full-width */
.row { width: 100%; }
.eight.columns, .four.columns, .six.columns, .twelve.columns { width: 100%; float: none; margin-left: 0; }
.four.columns.sidebar { display: none; } /* Hide old sidebar */
.cf::after, .row::after { content: ''; display: table; clear: both; }
section.content { padding: 0; }

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(8,13,24,0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--card-border);
}
/* Hide old nav */
nav.navigation { display: none; }
.nav-logo {
  font-family: var(--heading); font-size: 0.95rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--purple));
}
.nav-links {
  display: flex; gap: 4px; list-style: none; align-items: center;
}
.nav-links a {
  color: var(--text-dim); font-size: 0.82rem; font-weight: 500;
  padding: 6px 14px; border-radius: 8px; transition: 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--card); }
.nav-cta {
  background: linear-gradient(135deg, var(--teal-dim), var(--teal)) !important;
  color: #082f2b !important; font-weight: 600 !important;
}
.nav-hamburger {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.4rem; cursor: pointer;
}

/* ── ARTICLE HERO (replaces old breadcrumb + h1 + author) ── */
.breadcrumbs {
  font-size: 0.75rem; color: var(--text-dim);
  margin-bottom: 16px; padding-top: 100px;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .bc1 { display: inline; }

/* Old content section gets top padding for fixed nav */
section.content { padding-top: 80px; }

/* ── ARTICLE CONTENT ── */
.content h1 {
  font-family: var(--heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800; color: #fff;
  line-height: 1.15; letter-spacing: -0.03em;
  margin-bottom: 16px; max-width: 800px;
  text-align: left;
}
.content .author {
  font-size: 0.82rem; color: var(--text-dim);
  margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
}
.content .author a { color: var(--teal); }

.content h2 {
  font-family: var(--heading);
  font-size: 1.6rem; font-weight: 700; color: #fff;
  margin: 48px 0 16px; line-height: 1.25; letter-spacing: -0.02em;
  text-align: left;
}
.content h3 {
  font-family: var(--heading);
  font-size: 1.2rem; font-weight: 600; color: #fff;
  margin: 36px 0 12px; line-height: 1.3;
}
.content p {
  color: var(--text); font-size: 1.02rem; line-height: 1.8;
  margin-bottom: 20px; max-width: 740px;
}
.content ul, .content ol {
  margin: 16px 0 24px 24px; color: var(--text); max-width: 740px;
}
.content li {
  margin-bottom: 8px; font-size: 1rem; line-height: 1.7;
}
.content blockquote {
  border-left: 3px solid var(--teal);
  padding: 16px 24px; margin: 32px 0;
  background: var(--card); border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--text); font-size: 1.05rem;
  max-width: 740px;
}
.content img, .content p img {
  border-radius: 12px; margin: 32px auto;
  border: 1px solid var(--card-border);
  max-width: 740px;
}
.content a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(45,212,191,0.3);
  text-underline-offset: 3px;
}
.content a:hover { text-decoration-color: var(--teal); }

/* ── PULLOUT / CALLOUT BOXES ── */
.pulloutfull, .callout {
  background: rgba(45,212,191,0.06);
  border: 1px solid rgba(45,212,191,0.12);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 36px 0;
  max-width: 740px;
}
.pulloutfull h2, .pulloutfull h3, .callout h2, .callout h3 {
  font-family: var(--heading);
  font-size: 1rem; font-weight: 700; color: var(--teal);
  margin-bottom: 8px; margin-top: 0;
}
.pulloutfull p, .callout p { font-size: 0.95rem; margin-bottom: 8px; }
.pulloutfull img, .callout img { margin: 12px 0; border-radius: 8px; }

/* ── ARTICLE CTA ── */
.article-cta {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 40px 36px;
  text-align: center; margin: 48px 0; max-width: 740px;
}
.article-cta h3 {
  font-family: var(--heading); font-size: 1.3rem; font-weight: 700;
  color: #fff; margin-bottom: 8px;
}
.article-cta p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 20px; max-width: 100%; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  font-family: var(--heading); font-size: 0.85rem; font-weight: 600;
  transition: 0.3s; border: none; cursor: pointer;
}
.btn-glow {
  background: linear-gradient(135deg, var(--teal-dim), var(--teal));
  color: #082f2b; box-shadow: 0 0 28px rgba(45,212,191,0.25);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(45,212,191,0.45); color: #082f2b; }
.btn-glass {
  background: var(--card); color: var(--text);
  border: 1px solid var(--card-border); backdrop-filter: blur(8px);
}
.btn-glass:hover { background: var(--card-hover); color: #fff; }

/* ── AUTHOR BOX ── */
.author-box {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 32px;
  display: flex; gap: 24px; align-items: center;
  margin-top: 48px; max-width: 740px;
}
.author-box .avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-box .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box .info h4 { font-family: var(--heading); font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.author-box .info p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; max-width: 100%; }
/* Hide old about-the-author box */
.aboutheauthor { display: none; }

/* ── RECOMMENDED ARTICLES ── */
.recommended {
  padding: 48px 0 0;
  margin-top: 48px;
  border-top: 1px solid var(--card-border);
}
.recommended h2 {
  font-family: var(--heading); font-size: 1.4rem; font-weight: 700;
  color: #fff; margin-bottom: 24px; text-align: left;
}
.rec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rec-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; overflow: hidden;
  text-decoration: none; transition: 0.4s; display: block;
}
.rec-card:hover { border-color: rgba(45,212,191,0.15); transform: translateY(-4px); }
.rec-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.rec-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.rec-card:hover .thumb img { transform: scale(1.05); }
.rec-card h3, .rec-card h2 {
  font-family: var(--heading); font-size: 0.92rem; font-weight: 700;
  color: #fff; padding: 16px 20px; margin: 0;
}
/* Old recommended rows */
.feature-row { display: none; }
.sharebox { display: none; }
/* Hide old academy banner in recommendedfoot */
.content > p > a > img[alt*="Academy Banner"] { display: none; }

/* ── FOOTER ── */
footer, section.footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 0 28px;
  position: relative; z-index: 1;
  background: transparent;
}
/* Hide old footer */
section.footer { display: none; }
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
.foot-brand {
  font-family: var(--heading); font-size: 0.9rem; font-weight: 700;
  color: #fff; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.foot-about { color: var(--text-dim); font-size: 0.8rem; max-width: 260px; line-height: 1.6; }
.foot-col h4 { font-family: var(--heading); font-size: 0.8rem; font-weight: 600; color: #fff; margin-bottom: 12px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 0.8rem; padding: 3px 0; transition: 0.2s; }
.foot-col a:hover { color: var(--teal); }
.foot-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 18px; display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--text-dim);
}
.foot-bottom a { color: var(--text-dim); margin-left: 16px; }
.foot-bottom a:hover { color: var(--teal); }

/* ── SCROLL ANIMATIONS ── */
.anim { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.anim.vis { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.05s; } .d2 { transition-delay: 0.1s; } .d3 { transition-delay: 0.15s; }
.d4 { transition-delay: 0.2s; } .d5 { transition-delay: 0.25s; } .d6 { transition-delay: 0.3s; }

/* ── LEGACY COMPAT ── */
/* Hide old elements gracefully */
.sidebox { display: none; }
.v-centered { margin: 0 auto; }
.staysmall { /* no-op */ }
.x-rightfloat { float: right; margin: 0 0 16px 24px; max-width: 150px; }
.footerlinks { display: none; } /* Old footer links replaced by foot-grid */

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(8,13,24,0.95); backdrop-filter: blur(20px);
    padding: 16px; border-bottom: 1px solid var(--card-border);
  }
  .content h1 { font-size: 1.8rem; }
  .rec-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .author-box { flex-direction: column; text-align: center; }
}
