/* ================================
   YNOEL ENGLISH – FCC STYLE LAYOUT
   ================================ */

:root {
  /* Base */
  --bg: #f4f9ff;

  /* Surfaces */
  --panel: #0b1220;
  --card: #0f1a33;

  /* Text */
  --text: #eef2ff;
  --muted: #b6c3e1;

  /* Borders */
  --border: rgba(255,255,255,0.14);

  /* Playful blues */
  --accent: #60a5fa;        /* primary blue */
  --accent-soft: #93c5fd;   /* lighter sky blue */
  --accent-glow: rgba(96,165,250,0.35);

  /* Links */
  --link: #7dd3fc;
}


/* Reset */
*{ box-sizing:border-box; }
html, body{
  margin:0;
  padding:0;
}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

/* Links */
a{
  color:var(--link);
  text-decoration:none;
}
a:hover{ text-decoration:underline; }

/* ================================
   TOP BAR
   ================================ */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(11,15,25,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.topbar-inner{
  position: relative;
  max-width:1200px;
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.topbar-actions{
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand{
  font-weight:700;
  letter-spacing:.3px;
}
.pill{
  border:1px solid var(--border);
  padding:6px 12px;
  border-radius:999px;
  font-size:.9rem;
  color:var(--text);
}

/* ================================
   MAIN GRID
   ================================ */
.shell{
  max-width:1200px;
  margin:0 auto;
  padding:16px;
  display:grid;
  grid-template-columns: 280px 1fr 300px;
  gap:16px;
}

/* Panels */
.panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}
.panel h3{
  margin:0;
  padding:12px 14px;
  font-size:1rem;
  border-bottom:1px solid var(--border);
}

/* ================================
   SIDEBAR
   ================================ */
.sidebar a{
  display:block;
  padding:10px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  color:var(--text);
  opacity:.9;
}
.sidebar a:hover{
  background:rgba(147,197,253,.08);
  opacity:1;
}
.sidebar a.active{
  background:rgba(147,197,253,.15);
  font-weight:600;
  opacity:1;
}

/* ================================
   CONTENT AREA
   ================================ */
.content{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
}
.content h1{
  margin:0 0 6px;
  font-size:1.6rem;
}
.sub{
  margin:0 0 18px;
  color:var(--muted);
}

.block{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px;
  margin:14px 0;
}
.block h2{
  margin-top:0;
}
.block h3{
  margin-bottom:6px;
}

/* Code blocks */
pre{
  margin:10px 0;
  padding:12px;
  border-radius:12px;
  background:#0a1020;
  border:1px solid rgba(255,255,255,.12);
  overflow:auto;
  font-size:.95rem;
}

/* ================================
   ACTIONS / BUTTONS
   ================================ */
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#0a1020;
  color:var(--text);
  font-weight:600;
  cursor:pointer;
}
.btn:hover{
  background:#0f172a;
}
.btn.primary{
  background:#1f2937;
  border-color:var(--accent);
}

/* ================================
   SMALL TEXT / HR
   ================================ */
.small{
  font-size:.9rem;
  color:var(--muted);
}
hr{
  border:none;
  border-top:1px solid var(--border);
  margin:14px 0;
}

/* ================================
   AUDIO
   ================================ */
audio{
  width:100%;
  margin:6px 0 12px;
}

/* ================================
   COMPLETION BADGES
   ================================ */
.doneBadge{
  display:inline-block;
  margin-left:8px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  font-size:.8rem;
  color:var(--text);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1000px){
  .shell{
    grid-template-columns: 1fr;
  }
  .panel.sidebar{
    order:2;
  }
  .panel.right{
    order:3;
  }
}

a[aria-disabled="true"]{
  opacity:.55;
  pointer-events:none;
  cursor:not-allowed;
  text-decoration:none;
}
