/* ==========================================================================
   Hooky Express — shared styles for both the embedded homepage stepper
   (weplayhooky/templates/weplayhooky/index.html, #hooky-express) and the
   standalone /classes/... pages (hooky_classes templates). One stylesheet
   so both share the exact same look, since both render the same panel
   partials.
   ========================================================================== */

/* ── Section shell / slide mechanics ─────────────────────────────────────── */

.hooky-express-section { padding: 60px 0; background: #faf9f7; }
.hooky-express-header { text-align: center; margin-bottom: 32px; }
.hooky-express-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; color: #2d3748; }
.hooky-express-subtitle { font-size: 1.1rem; color: #4a4a4a; max-width: 640px; margin: 0 auto; }

.hooky-express-track { position: relative; overflow: hidden; min-height: 320px; }
.hooky-express-slide { width: 100%; }
.hooky-express-slide.is-animating {
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.hooky-express-slide-in { transform: translateX(100%); opacity: 0; }
.hooky-express-slide-out { transform: translateX(-100%); opacity: 0; }
.hooky-express-loading { text-align: center; padding: 60px 0; color: #999; }

/* ── Step-progress indicator (injected by hooky-express-stepper.js) ─────── */

.hooky-express-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.hooky-express-progress .hx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e2e2;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hooky-express-progress .hx-dot.active {
  background: linear-gradient(135deg, rgb(255, 255, 0) 0%, #cccc00 100%);
  transform: scale(1.35);
}
.hooky-express-progress .hx-step-label {
  font-size: 0.82rem;
  color: #718096;
  margin-left: 6px;
}

/* ── Weekly timetable (class_list_panel.html) ────────────────────────────── */

.hooky-timetable-wrapper { position: relative; }
.hooky-timetable {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.hooky-day-column { flex: 0 0 230px; scroll-snap-align: start; }
.hooky-day-header {
  text-align: center;
  padding: 10px 6px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  font-weight: 700;
  color: #2d3748;
}
.hooky-day-header.is-today {
  background: linear-gradient(135deg, rgb(255, 255, 0) 0%, #cccc00 100%);
}
.hooky-day-empty {
  text-align: center;
  color: #a0aec0;
  font-size: 0.85rem;
  padding: 28px 8px;
  background: rgba(0, 0, 0, 0.025);
  border-radius: 16px;
}
.hooky-class-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hooky-class-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.hooky-class-card-title { font-size: 1.02rem; font-weight: 700; color: #2d3748; margin-bottom: 4px; }
.hooky-class-card-meta { font-size: 0.82rem; color: #718096; margin-bottom: 10px; }
.hooky-class-credit-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgb(255, 255, 0) 0%, #cccc00 100%);
  color: #2d3748;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.hooky-class-card .btn { border-radius: 10px; font-weight: 600; }

.hooky-timetable-hint {
  text-align: center;
  font-size: 0.82rem;
  color: #718096;
  letter-spacing: 0.03em;
  margin-top: 2px;
}
@media (min-width: 768px) {
  .hooky-timetable-hint { display: none; }
}

/* ── Equipment / credits / confirm step cards ────────────────────────────── */

.hooky-step-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
}
.hooky-step-title { font-size: 1.5rem; font-weight: 800; color: #2d3748; margin-bottom: 4px; }
.hooky-step-subtitle { color: #718096; margin-bottom: 24px; }

.hooky-equipment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 24px; }
.hooky-equipment-item {
  border: 2px solid #eee;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  display: block;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hooky-equipment-item:has(input:checked) {
  border-color: #cccc00;
  background: #fffef0;
}

.hooky-summary-list { list-style: none; padding: 0; margin: 0 0 24px; }
.hooky-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #2d3748;
}
.hooky-summary-list li:last-child { border-bottom: none; font-weight: 700; }

.hooky-alert {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.hooky-alert-warning { background: #fff8e6; color: #7a5800; }

.hooky-btn-primary {
  background: linear-gradient(135deg, rgb(255, 255, 0) 0%, #cccc00 100%);
  border: none;
  color: #2d3748;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hooky-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 0, 0.4);
  color: #2d3748;
}
.hooky-btn-secondary {
  background: #fff;
  border: 2px solid #eee;
  color: #2d3748;
  font-weight: 600;
  border-radius: 14px;
  padding: 12px;
  width: 100%;
}

.hooky-select {
  border: 2px solid #eee;
  border-radius: 14px;
  padding: 12px 14px;
  height: auto;
  font-weight: 600;
  color: #2d3748;
}
.hooky-select:focus {
  border-color: #cccc00;
  box-shadow: 0 0 0 0.15rem rgba(204, 204, 0, 0.25);
}
