/* ============================================
   Jillian Starr — Teaching Resources
   Simple static site style (GitHub Pages ready)
   Created: April 14, 2022
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #56ab4a;
  --green-dark: #3f8c36;
  --ink: #2b2b2b;
  --gray: #6b6b6b;
  --line: #e3e3e3;
  --bg: #ffffff;
  --bg-soft: #f7f9f7;
  --star: #f5a623;
  --sale: #c0392b;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.brand .name { font-size: 19px; font-weight: 700; color: var(--ink); }
.brand .name span { color: var(--green); }
.brand .tagline { font-size: 12px; color: var(--gray); }
.main-nav { display: flex; gap: 22px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--ink); padding: 6px 2px; }
.main-nav a:hover { color: var(--green-dark); text-decoration: none; border-bottom: 2px solid var(--green); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--gray); padding: 14px 0; }
.breadcrumb a { color: var(--gray); }
.breadcrumb .sep { margin: 0 6px; color: #bbb; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; padding: 12px 22px;
  border-radius: 6px; text-align: center;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); text-decoration: none; }
.btn-outline {
  background: #fff; color: var(--green-dark);
  border: 2px solid var(--green); font-weight: 600; padding: 10px 20px;
}
.btn-outline:hover { background: var(--bg-soft); text-decoration: none; }
.btn-block { display: block; width: 100%; }

/* ---------- Creator page ---------- */
.profile-card {
  display: flex; gap: 28px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 28px; margin-bottom: 34px; flex-wrap: wrap;
}
.profile-avatar { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.profile-info { flex: 1; min-width: 260px; }
.profile-info h1 { font-size: 26px; margin-bottom: 2px; }
.profile-info .role { color: var(--gray); font-size: 14px; margin-bottom: 8px; }
.profile-stats { display: flex; gap: 26px; flex-wrap: wrap; margin: 10px 0 14px; font-size: 14px; }
.profile-stats .stat b { display: block; font-size: 18px; color: var(--ink); }
.profile-stats .stat span { color: var(--gray); }
.stars { color: var(--star); letter-spacing: 1px; }
.profile-meta { font-size: 13px; color: var(--gray); }
.profile-meta .dot { margin: 0 6px; }

.section { margin-bottom: 38px; }
.section-title {
  font-size: 20px; font-weight: 700; margin-bottom: 14px;
  border-left: 4px solid var(--green); padding-left: 10px;
}
.section p { margin-bottom: 12px; color: #3d3d3d; }
.edu-list { list-style: none; }
.edu-list li { padding: 6px 0 6px 22px; position: relative; color: #3d3d3d; }
.edu-list li::before {
  content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.product-card {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fff; transition: box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.10); text-decoration: none; }
.product-card .thumb { aspect-ratio: 1/1; overflow: hidden; background: #fafafa; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-body { padding: 12px 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-card .card-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.product-card .card-rating { font-size: 12px; color: var(--gray); }
.product-card .card-rating .stars { font-size: 12px; }
.product-card .card-price { margin-top: auto; font-size: 15px; font-weight: 700; }
.product-card .card-price s { color: var(--gray); font-weight: 400; font-size: 13px; margin-left: 6px; }
.badge-new {
  display: inline-block; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--sale); border-radius: 3px; padding: 2px 7px; width: fit-content;
}

/* ---------- Product page ---------- */
.product-layout {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 34px; align-items: start; margin-bottom: 40px;
}
@media (max-width: 800px) { .product-layout { grid-template-columns: 1fr; } }

.gallery .main-img {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fafafa; margin-bottom: 12px;
}
.gallery .main-img img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery .thumbs img {
  width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--line);
  border-radius: 6px; cursor: pointer; background: #fafafa;
}
.gallery .thumbs img:hover { border-color: var(--green); }

.buy-box { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: #fff; }
.buy-box h1 { font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
.rating-line { font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.price-row { margin: 6px 0 16px; }
.price-row .now { font-size: 28px; font-weight: 800; }
.price-row s { color: var(--gray); margin-left: 8px; }
.price-row .save { color: var(--green-dark); font-weight: 700; margin-left: 8px; font-size: 13px; }
.buy-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.meta-note { font-size: 13px; color: var(--gray); border-top: 1px dashed var(--line); padding-top: 12px; }
.meta-note b { color: var(--ink); }

/* ---------- Date highlights ---------- */
.date-badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--green-dark); border-radius: 3px; padding: 3px 9px; width: fit-content;
  letter-spacing: .3px;
}
.date-badge.sale { background: var(--sale); }
.video-date {
  margin-top: 12px; padding: 10px 14px; border: 2px solid var(--green-dark);
  border-radius: 8px; background: #f0faf4; font-size: 14px; font-weight: 700;
  color: var(--ink);
}
.video-date .date-badge { margin-right: 8px; }
.card-date { font-size: 12px; color: var(--gray); }

.highlights { margin-top: 16px; font-size: 13.5px; }
.highlights dl { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; }
.highlights dt { color: var(--gray); }
.highlights dd { color: var(--ink); }

/* ---------- Description ---------- */
.description-block { max-width: 840px; }
.description-block .intro {
  font-weight: 700; font-size: 16px; letter-spacing: .3px; margin-bottom: 10px;
}
.description-block h3 { margin: 20px 0 6px; font-size: 16px; color: var(--ink); }
.description-block p { margin-bottom: 12px; color: #3d3d3d; }
.description-block .divider { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.description-block .fine-print { font-size: 13px; color: var(--gray); }

/* ---------- Quotes ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.quote {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; font-size: 14px; color: #3d3d3d;
}
.quote .who { margin-top: 8px; font-size: 13px; color: var(--gray); font-weight: 600; }

/* ---------- Video ---------- */
.video-wrap {
  max-width: 720px; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: #000;
}
.video-wrap video { width: 100%; display: block; }
.detail-imgs { max-width: 720px; }
.detail-imgs img { border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  margin-top: 50px; padding: 22px 0; font-size: 13px; color: var(--gray);
  text-align: center;
}
