/* Styles only used on japanese.html (shared styles live in style.css) */

.jp-top { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; }
.jp-text { color: var(--muted); line-height: 1.75; margin-bottom: 12px; max-width: 680px; }
.jp-text b { color: var(--pink-soft); }
.jp-btn { margin-top: 8px; }

/* My Japanese badges */
.jp-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.jp-badges li {
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  border: 1.5px solid var(--line); background: rgba(60, 44, 96, .55);
}
.jp-badges li::before { content: "✓ "; color: var(--pink-soft); }

/* What I taught */
.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lesson {
  border: 1.5px solid var(--line); border-radius: 20px; padding: 26px 22px;
  text-align: center; background: rgba(60, 44, 96, .55);
  transition: transform .2s;
}
.lesson:hover { transform: translateY(-4px); }
.lesson .glyph { font-size: 4.5rem; line-height: 1.1; font-weight: 700; }
.lesson h3 { font-size: 1.25rem; margin-top: 8px; }
.lesson .sample { color: var(--pink-soft); letter-spacing: .25em; margin-top: 6px; font-size: 1.05rem; }
.lesson .desc { color: var(--muted); font-size: .92rem; line-height: 1.6; margin-top: 12px; }

/* Call to action (re-uses the .banner look from the home page) */
.jp-cta { background:
    linear-gradient(90deg, rgba(88, 52, 140, .85), rgba(88, 52, 140, .2)),
    url("images/web/banner.jpg") center / cover no-repeat; }
.jp-cta .btn { align-self: flex-start; margin-top: 22px; }

@media (max-width: 900px) {
  .jp-top, .lessons { grid-template-columns: 1fr; }
}
.nowrap { white-space: nowrap; }

/* What I know */
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px; counter-reset: unit; }
.unit {
  border: 1.5px solid var(--line); border-radius: 20px; padding: 18px 20px;
  background: rgba(60, 44, 96, .55);
}
.unit-top { display: flex; justify-content: space-between; align-items: center; }
.unit-code { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--muted);
  padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.unit-check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink); color: #3b1a55; font-weight: 700; box-shadow: 0 0 12px rgba(240,171,252,.6); }
.unit h3 { font-size: 1.15rem; margin-top: 10px; }
.unit-kanji { color: var(--pink-soft); font-weight: 600; font-size: .9rem; margin-top: 2px; }
.unit .desc { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-top: 8px; }

/* Vocabulary meter */
.kanji-meter { margin-top: 22px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 20px; background: rgba(46, 33, 73, .5); }
.meter-title { font-weight: 700; margin-bottom: 10px; }
.meter-row { display: grid; grid-template-columns: 170px 1fr 70px; gap: 14px; align-items: center; margin: 8px 0; }
.meter-label { font-weight: 600; font-size: .92rem; }
.meter-track { height: 14px; border-radius: 999px; background: rgba(20, 13, 36, .8); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; }
.meter-fill.full { background: linear-gradient(90deg, #d68be6, var(--pink)); box-shadow: 0 0 12px var(--pink); }
.meter-num { font-weight: 700; text-align: right; color: var(--pink-soft); }
.meter-note { color: var(--muted); font-size: .88rem; line-height: 1.6; margin-top: 10px; }

@media (max-width: 900px) {
  .units { grid-template-columns: 1fr; }
  .meter-row { grid-template-columns: 1fr 60px; }
  .meter-label { grid-column: 1 / -1; }
}
