/* Learn Disc Golf page — builds on home.css (variables, .section, .btn, .h2). */

.btn.ghost-dark { background: transparent; color: var(--green-800); border-color: var(--green-600); }
.btn.ghost-dark:hover { background: rgba(43,51,26,0.06); }

/* Hero */
.learn-hero { background: var(--green-800); color: var(--cream); padding: 128px 24px 64px; text-align: center; }
.learn-hero-inner { max-width: 760px; margin: 0 auto; }
.learn-hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 400; line-height: 1.12; margin: 6px 0 16px; }
.learn-hero .lead { color: #d9d3bd; }
.learn-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.learn-hero .btn.ghost-dark { color: var(--cream); border-color: var(--cream); }
.learn-hero .btn.ghost-dark:hover { background: rgba(255,255,255,0.12); }

/* Disc-type cards */
.disc-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; text-align: left; }
@media (max-width: 820px) { .disc-types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .disc-types { grid-template-columns: 1fr; } }
.dtype { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--green-600)); border-radius: 12px; padding: 18px 18px 16px; }
.dtype h3 { font-family: -apple-system, sans-serif; font-size: 17px; margin: 0 0 4px; color: var(--green-800); }
.dtype .dt-tag { font-family: -apple-system, sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--c); font-weight: 700; }
.dtype ul { margin: 10px 0 0; padding-left: 18px; font-family: -apple-system, sans-serif; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Flight numbers explainer */
.flightnums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; text-align: left; }
@media (max-width: 820px) { .flightnums { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .flightnums { grid-template-columns: 1fr; } }
.fn { background: var(--cream-2); border-radius: 12px; padding: 18px; }
.fn .fn-name { font-family: -apple-system, sans-serif; font-weight: 700; color: var(--green-800); font-size: 16px; }
.fn .fn-range { font-family: -apple-system, sans-serif; font-size: 12px; color: var(--gold); font-weight: 700; margin-left: 6px; }
.fn p { font-family: -apple-system, sans-serif; font-size: 14px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }

/* Interactive flight chart */
.chart-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0 18px; }
.chip { font-family: -apple-system, sans-serif; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--green-800); cursor: pointer; transition: all .15s ease; }
.chip:hover { border-color: var(--green-400); }
.chip.on { background: var(--green-700); color: var(--cream); border-color: var(--green-700); }
.chip.toggle.on { background: var(--gold); border-color: var(--gold); color: #fff; }

.plot-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: stretch; text-align: left; }
@media (max-width: 780px) { .plot-wrap { grid-template-columns: 1fr; } }
.plot-outer { position: relative; }
.plot { position: relative; width: 100%; aspect-ratio: 4 / 3; background:
  linear-gradient(to right, rgba(78,91,49,0.06), rgba(163,64,45,0.06)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.plot::before, .plot::after { content: ""; position: absolute; background: rgba(43,51,26,0.12); }
.plot::before { left: 50%; top: 0; bottom: 0; width: 1px; }           /* stability center line */
.plot::after { left: 0; right: 0; top: 50%; height: 1px; }             /* mid-speed line */
.axis-x, .axis-y { position: absolute; font-family: -apple-system, sans-serif; font-size: 10px; letter-spacing: .3px; color: var(--muted); text-transform: uppercase; font-weight: 700; pointer-events: none; }
.axis-x { bottom: 6px; } .axis-x.l { left: 8px; } .axis-x.r { right: 8px; }
.axis-y.top { top: 8px; left: 8px; }

.dot { position: absolute; transform: translate(-50%, -50%); width: 13px; height: 13px; border-radius: 50%;
  background: var(--c); border: 2px solid var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; padding: 0; transition: opacity .2s ease, transform .1s ease; }
.dot:hover { transform: translate(-50%, -50%) scale(1.25); z-index: 5; }
.dot.carried { width: 18px; height: 18px; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,61,.35), 0 1px 4px rgba(0,0,0,.3); }
.dot.active { transform: translate(-50%, -50%) scale(1.3); z-index: 6; }
.dot.dim { opacity: 0.14; pointer-events: none; }
.dot-label { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); white-space: nowrap;
  font-family: -apple-system, sans-serif; font-size: 11px; font-weight: 600; color: var(--green-800);
  background: rgba(255,254,248,.9); padding: 1px 5px; border-radius: 5px; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.dot.carried .dot-label, .dot:hover .dot-label, .dot.active .dot-label { opacity: 1; }

.chart-detail { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; align-self: start; }
.chart-detail .cd-empty { color: var(--muted); font-family: -apple-system, sans-serif; font-size: 14px; }
.cd-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cd-head b { font-size: 20px; color: var(--green-800); }
.cd-type, .dc-type { font-family: -apple-system, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: #fff; background: var(--c); padding: 3px 8px; border-radius: 999px; }
.cd-carried { font-family: -apple-system, sans-serif; font-size: 12px; font-weight: 700; color: var(--gold); }
.cd-nums, .dc-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.cd-nums span, .dc-nums span { text-align: center; background: var(--cream-2); border-radius: 8px; padding: 8px 4px;
  font-family: -apple-system, sans-serif; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.cd-nums b, .dc-nums b { display: block; font-size: 20px; color: var(--green-800); }
.chart-detail p { font-family: -apple-system, sans-serif; font-size: 14px; color: var(--ink); line-height: 1.6; }
.cd-stars, .dc-stars { font-family: -apple-system, sans-serif; font-size: 13px; color: var(--gold); margin-top: 10px; }
.cd-stars .off, .dc-stars .off { color: var(--line); }

/* Beginner disc cards + quiz result discs */
.beginner-discs, .qr-discs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; text-align: left; }
.qr-discs { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin: 20px auto; }
@media (max-width: 720px) { .beginner-discs, .qr-discs { grid-template-columns: 1fr; } }
.disc-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.dc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dc-name { font-family: "Georgia", serif; font-size: 22px; color: var(--green-800); }
.dc-blurb { font-family: -apple-system, sans-serif; font-size: 14px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; }

/* Quiz */
.quiz { max-width: 640px; margin: 30px auto 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; text-align: center; }
.quiz-progress { font-family: -apple-system, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.quiz-q { font-family: "Georgia", serif; font-weight: 400; font-size: 24px; color: var(--green-800); margin: 8px 0 22px; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.qopt { font-family: -apple-system, sans-serif; font-size: 16px; font-weight: 600; color: var(--green-800);
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 12px; padding: 15px; cursor: pointer; transition: all .15s ease; }
.qopt:hover { background: var(--green-700); color: var(--cream); border-color: var(--green-700); transform: translateY(-1px); }
.quiz-back { margin-top: 18px; background: none; border: none; color: var(--muted); font-family: -apple-system, sans-serif; font-size: 14px; cursor: pointer; }
.qr-eyebrow { font-family: -apple-system, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin: 0; }
.qr-why { font-family: -apple-system, sans-serif; font-size: 15px; color: var(--ink); line-height: 1.65; max-width: 520px; margin: 4px auto 0; }
.qr-cta { font-family: -apple-system, sans-serif; font-size: 14px; color: var(--muted); margin: 16px auto 20px; }

/* Videos placeholder */
.video-note { background: var(--cream-2); border: 1px dashed var(--line); border-radius: 14px; padding: 30px 24px; margin-top: 26px; color: var(--muted); font-family: -apple-system, sans-serif; }

/* Play at Oglebay links */
.play-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 720px) { .play-links { grid-template-columns: repeat(2, 1fr); } }
.play-link { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px;
  font-family: -apple-system, sans-serif; font-weight: 600; font-size: 15px; color: var(--green-800); transition: all .15s ease; }
.play-link:hover { border-color: var(--green-400); transform: translateY(-2px); }

/* Full-lineup chart: search, badges, results list */
.disc-search { width: 100%; max-width: 420px; margin: 4px auto 20px; display: block; font-family: -apple-system, sans-serif;
  font-size: 15px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); }
.disc-search:focus { outline: none; border-color: var(--green-400); }

.dot.best { border-color: #4e5b31; box-shadow: 0 0 0 2px rgba(78,91,49,.35), 0 1px 4px rgba(0,0,0,.28); }
.dot.carried { z-index: 4; }

.cd-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.bdg { font-family: -apple-system, sans-serif; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.bdg.carry { color: var(--gold); background: rgba(176,141,61,.12); }
.bdg.best { color: #3d5220; background: rgba(78,91,49,.12); }
.bdg.fav { color: #8a6d2a; background: rgba(230,201,119,.18); }

.disc-list { margin-top: 24px; text-align: left; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px;
  max-height: 420px; overflow-y: auto; padding: 4px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
@media (max-width: 820px) { .disc-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .disc-list { grid-template-columns: 1fr; } }
.dl-count { grid-column: 1 / -1; font-family: -apple-system, sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 8px 6px 4px; position: sticky; top: 0; background: var(--white); }
.dl-row { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: none; border: none; border-radius: 8px; padding: 8px 8px; cursor: pointer; font-family: -apple-system, sans-serif; transition: background .12s ease; }
.dl-row:hover { background: var(--cream-2); }
.dl-row.on { background: var(--green-700); }
.dl-row.on .dl-name, .dl-row.on .dl-nums { color: var(--cream); }
.dl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.dl-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--green-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-nums { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.cd-generic { color: var(--muted) !important; }

/* Video playlist embed */
.video-embed { position: relative; width: 100%; max-width: 760px; margin: 28px auto 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.35); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Video guides grid (facade → embed) */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .video-grid { grid-template-columns: 1fr; } }
.vcard { display: block; width: 100%; text-align: left; background: var(--white); border: 1px solid rgba(217,211,189,.25); border-radius: 12px; overflow: hidden; cursor: pointer; padding: 0; transition: transform .15s ease, box-shadow .15s ease; }
.vcard:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.vthumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vplay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(200,30,30,.92); color: #fff; font-size: 19px; padding-left: 3px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.45); transition: transform .15s ease; }
.vcard:hover .vplay { transform: translate(-50%,-50%) scale(1.12); }
.vtitle { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-family: -apple-system, sans-serif; font-weight: 600; font-size: 14px; color: var(--green-800); }
.vnum { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--green-700); color: var(--cream); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.vembed { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.vembed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Flight chart page (hosted Innova charts) */
.chart-page { display: flex; flex-direction: column; gap: 34px; margin-top: 20px; }
.chart-fig { margin: 0; }
.chart-fig figcaption { font-family: -apple-system, sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 12px; text-align: center; }
.chart-fig img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.14); }
.chart-attrib { font-family: -apple-system, sans-serif; font-size: 13px; color: var(--muted); margin: 30px auto 0; max-width: 640px; }

/* iOS renders <button> with a native appearance that hides custom backgrounds —
   force our own styling so the chart dots (and other custom buttons) show. */
.dot, .chip, .dl-row, .qopt, .vcard, .vplay, .quiz-back, .quiz-result .btn { -webkit-appearance: none; appearance: none; }
.plot { min-height: 240px; }

/* Colored disc icon for the disc-type cards — matches the flight-chart dot colors. */
.dt-disc { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--c, var(--green-600));
  vertical-align: -3px; margin-right: 5px; box-shadow: inset 0 -2px 3px rgba(0,0,0,.18); }

/* Chart-image lightbox (popup) — opens the full-size flight chart in place. */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,12,6,.93); display: none; }
.lightbox.open { display: flex; flex-direction: column; }
.lightbox-stage { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; padding: 16px; }
.lightbox-img { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); cursor: zoom-in; }
.lightbox-img.zoomed { max-width: none; max-height: none; width: auto; height: auto; cursor: zoom-out; }
.lightbox-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; line-height: 44px; text-align: center;
  cursor: pointer; -webkit-appearance: none; appearance: none; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-hint { text-align: center; color: rgba(255,255,255,.72); font-family: -apple-system, sans-serif;
  font-size: 13px; margin: 0; padding: 6px 16px 14px; }
.chart-fig a { cursor: zoom-in; }

/* Inline text link that opens an image in the lightbox (e.g. "right-handed backhand throw"). */
.imglink { color: #e6c977; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; cursor: zoom-in; }
.imglink:hover { color: #f0d98e; }
