/*
 * uktg-dashboard.css
 * Basket hero, guides section, YouTube review grid,
 * student dashboard widgets, student hero.
 * Load order: 4 of 6
 */

/* ==========================================================================
   22. BASKET HERO
   ========================================================================== */
.basket-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(3rem,6vw,7rem) 1rem;
  text-align: center;
  background:
    radial-gradient(1200px 500px at -10% 120%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(800px 400px at 110% -10%, rgba(255,255,255,.15), transparent 60%),
    linear-gradient(135deg, #ffffff, #bfaa7c 65%);
  box-shadow: 0 10px 40px rgba(0,0,0,.15) inset, 0 10px 30px rgba(0,0,0,.08);
  isolation: isolate;
}

.basket-title {
  margin: 0;
  font-family: ui-rounded, system-ui, -apple-system, Segoe UI, Roboto,
               "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #f6f6f6 50%, #bfaa7c 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,.3), 0 8px 30px rgba(0,0,0,.25);
  position: relative;
  z-index: 2;
}

/* Basket animated bubbles */
.bubbles.basket-bubbles {
  position: absolute;
  inset: -10% -20% -15% -20%;
  pointer-events: none;
  z-index: 1;
}

.basket-bubbles .bubble {
  position: absolute;
  bottom: -12vmin;
  left: var(--left,50%);
  width: var(--size,12vmin);
  height: var(--size,12vmin);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.25) 40%,
                    rgba(191,170,124,.3) 60%, rgba(191,170,124,0) 80%),
    radial-gradient(circle at 70% 70%, rgba(191,170,124,.25), rgba(255,255,255,0) 60%);
  box-shadow:
    inset 0 0 2.2vmin rgba(255,255,255,.6),
    0 6px 30px rgba(0,0,0,.12);
  filter: blur(var(--blur,0px));
  opacity: .9;
  transform: translate3d(0,0,0) scale(var(--scale,1));
  animation: float-up var(--duration,18s) linear infinite;
  animation-delay: var(--delay,0s);
  will-change: transform, opacity;
}


/* ==========================================================================
   23. GUIDES SECTION
   ========================================================================== */
.guides-section {
  background: #ffffff;
  padding: 72px 0;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  margin: 0;
  backdrop-filter: none;
  color: #2b2b2b;
}

.guides-title {
  font-size: 40px;
  font-weight: 700;
  color: #2b2b2b;
  margin: 0 0 16px;
  line-height: 1.2;
  padding: 0 24px;
  text-align: center;
}

.guides-intro {
  font-size: 17px;
  line-height: 1.75;
  color: #444444;
  max-width: 600px;
  margin: 0 auto 52px;
  padding: 0 24px;
  text-align: center;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  background: transparent;
  border: none;
  align-items: stretch;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #2b2b2b;
  padding: 36px 32px;
  border-radius: 0;
  text-decoration: none;
  border: none;
  box-shadow: none;
  gap: 12px;
  transition: background 0.2s ease;
}

.guide-card:hover {
  background: #f9f7f4;
  transform: none;
  box-shadow: none;
}

.guide-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #2b2b2b;
  line-height: 1.35;
}

.guide-card p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  color: #444444;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f7a4f;
  margin-top: 8px;
  padding-top: 0;
  text-decoration: none;
}

.guide-card:focus-visible {
  outline: 2px solid #BFAA7C;
  outline-offset: -2px;
  box-shadow: none;
  border-color: transparent;
}

@media (max-width: 720px) {
  .guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
  .guides-section { padding: 56px 0; }
  .guides-title { font-size: 30px; }
  .guides-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   24. YOUTUBE REVIEW GRID
   ========================================================================== */
#utg-review-videos {
  --gap: 16px;
  --radius: 14px;
  --accent: #bfaa7c;
  --bg: #fffdf8;
  --ink: #333;
  max-width: 85%;
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
          mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

#utg-review-videos .wrap {
  background: transparent;
  border-radius: 20px;
  padding: 2rem;
}

#utg-review-videos h2 {
  margin: 0 0 .75rem;
  font: 700 1.6rem/1.25 "Lato",system-ui,arial;
  color: var(--accent);
  text-align: center;
}

#utg-review-videos p.lead {
  margin: .25rem auto 1.5rem;
  max-width: 52ch;
  color: var(--ink);
  text-align: center;
}

#utg-review-videos .yt-grid       { display: grid; gap: var(--gap); }
#utg-review-videos .yt-grid-3     { grid-template-columns: repeat(3, minmax(0,1fr)); }

@media (max-width: 980px) {
  #utg-review-videos              { max-width: 100%; }
  #utg-review-videos .wrap        { padding: 1.5rem; }
  #utg-review-videos .yt-grid-3  { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px) {
  #utg-review-videos              { padding: 1.75rem 1rem; }
  #utg-review-videos .wrap        { padding: 1.25rem; }
  #utg-review-videos .yt-grid-3  { grid-template-columns: 1fr; }
}

#utg-review-videos .yt-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

#utg-review-videos .yt-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.92);
  transition: transform .28s ease, filter .28s ease;
}

#utg-review-videos .yt-card:hover .yt-thumb {
  transform: scale(1.03);
  filter: brightness(1);
}

#utg-review-videos .yt-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .6rem .8rem;
  font: 600 .95rem/1.2 "Lato",system-ui,arial;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
}

#utg-review-videos .yt-play {
  position: absolute;
  inset: auto 12px 12px auto;
  border: 0;
  border-radius: 999px;
  padding: .5rem .75rem;
  background: #fff;
  color: #000;
  font: 700 .8rem/1 system-ui;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

#utg-review-videos .yt-play::before { content: "▶"; margin-right: .45rem; }

#utg-review-videos .yt-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

#utg-review-videos .yt-iframe,
#utg-review-videos iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}


/* ==========================================================================
   25. STUDENT DASHBOARD WIDGETS (crcard, crstu)
   ========================================================================== */
.crcard {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.crcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.crcard__title { margin: 0; font-weight: 700; font-size: 1.05rem; color: #111827; }
.crcard__empty { margin: 8px 0 2px; color: #6b7280; }

.crlist          { list-style: none; margin: 10px 0 0; padding: 0; }
.crlist__item    {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 10px 8px;
  border-top: 1px solid #f1f5f9;
}
.crlist__item:first-child { border-top: none; }
.crlist__date   { min-width: 8.5rem; font-weight: 600; color: #374151; }
.crlist__dot    { width: 8px; height: 8px; border-radius: 999px; background: #f59e0b; display: inline-block; }
.crlist__title  { font-weight: 600; color: #111827; }
.crlist__note   { color: #6b7280; }

@media (max-width: 480px) {
  .crlist__date { min-width: auto; font-size: .92rem; }
  .crlist__item { flex-wrap: wrap; }
}

.crstu-wrap    { border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.crstu-overall { font-weight: 700; margin: 6px 0 14px; font-size: 1.05rem; }
.crstu-overall .lbl { color: #6b7280; margin-right: 8px; }
.crstu-card    { border: 1px solid #eef2f7; border-radius: 12px; padding: 12px; margin: 10px 0; background: #fafafa; }
.crstu-card-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.crstu-ttitle  { font-weight: 700; }
.crstu-range   { color: #6b7280; }
.crstu-table   { width: 100%; border-collapse: collapse; margin: 6px 0; }
.crstu-table th,
.crstu-table td { border: 1px solid #e5e7eb; padding: 6px 8px; text-align: center; }
.crstu-details summary { cursor: pointer; margin-top: 8px; }
.crstu-list    { margin: 6px 0 0 18px; }
.crstu-muted   { color: #6b7280; }
.crstu-msg     { padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }


/* ==========================================================================
   26. STUDENT HERO (stu-hero — Term Dates page)
   ========================================================================== */
.stu-hero {
  --gold:  #bf9b30;
  --gold-2: #d9bb57;
  --gold-3: #f2e3b5;
  --panel-alpha: 0.85;
  --txt: #ffffff;
  --shadow: 0 14px 48px rgba(0,0,0,.28);
  --txt-shadow: 0 2px 0 rgba(0,0,0,.22), 0 14px 40px rgba(0,0,0,.45);
  --txt-soft: 0 1px 0 rgba(0,0,0,.25);

  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  margin: 0 0 1.25rem;
  padding: clamp(2.25rem,5vw,4.25rem) 1.25rem;
  background:
    radial-gradient(1400px 600px at -10% 120%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(900px 480px at 110% -10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--gold)   calc(var(--panel-alpha)*100%),  transparent),
      color-mix(in srgb, var(--gold-2) calc(var(--panel-alpha)*.95*100%), transparent) 60%,
      color-mix(in srgb, var(--gold-3) calc(var(--panel-alpha)*.75*100%), transparent)
    );
  box-shadow: var(--shadow), inset 0 10px 36px rgba(0,0,0,.08);
  color: var(--txt);
  font-family: "Lato", sans-serif;
}

.stu-hero__inner {
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stu-hero__title {
  margin: 0 0 .6rem;
  font-family: "Lato", sans-serif;
  font-weight: 900;
  letter-spacing: .015em;
  font-size: clamp(1.7rem,4.6vw,3rem);
  line-height: 1.1;
  color: var(--txt);
  text-shadow: var(--txt-shadow);
}
