/* Yuva Yoga USA — Main Stylesheet */
/* Place this file in: /Applications/MAMP/htdocs/yuva-yoga/assets/css/style.css */

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

:root {
  --teal-50:  #E1F5EE;
  --teal-100: #9FE1CB;
  --teal-400: #1D9E75;
  --teal-600: #0F6E56;
  --teal-800: #085041;

  --amber-50:  #FAEEDA;
  --amber-800: #633806;

  --purple-50:  #EEEDFE;
  --purple-800: #3C3489;

  --red-50:  #FCEBEB;
  --red-400: #E24B4A;
  --red-800: #791F1F;

  --green-50:  #EAF3DE;
  --green-800: #27500A;

  --gray-50:  #F1EFE8;
  --gray-100: #D3D1C7;
  --gray-400: #888780;
  --gray-600: #5F5E5A;

  --text-primary:   #1a1a18;
  --text-secondary: #5F5E5A;
  --text-muted:     #888780;
  --bg-page:        #f7f6f2;
  --bg-card:        #ffffff;
  --border:         rgba(0,0,0,0.1);
  --radius-md:      8px;
  --radius-lg:      12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Navbar ── */
.navbar { background: var(--bg-card); border-bottom: 0.5px solid var(--border); padding: 14px 20px; position: sticky; top: 0; z-index: 10; }
.nav-inner { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-size: 16px; font-weight: 500; color: var(--teal-600); }
.nav-sub   { font-size: 13px; color: var(--text-muted); }

/* ── Container ── */
.container { max-width: 640px; margin: 0 auto; padding: 20px 16px 40px; }

/* ── Filter Bar ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn { text-decoration: none; font-size: 13px; padding: 5px 14px; border-radius: 20px; border: 0.5px solid var(--border); color: var(--text-secondary); background: var(--bg-card); transition: all 0.15s; }
.filter-btn:hover  { background: var(--gray-50); }
.filter-btn.active { background: var(--teal-400); color: var(--teal-50); border-color: var(--teal-400); font-weight: 500; }

/* ── Class Card (cc) ── */
.cc {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 0.15s, transform 0.1s;
}
.cc:hover            { border-color: var(--teal-400); transform: translateY(-1px); }
.cc-registered       { background: var(--teal-50); border-color: var(--teal-100); }
.cc-registered:hover { border-color: var(--teal-400); }
.cc-unavailable      { opacity: 0.6; }
.cc-unavailable:hover{ transform: none; border-color: var(--border); }

.cc-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-left  { flex: 1; min-width: 0; }
.cc-right { flex-shrink: 0; }

.cc-title-row  { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 4px 0 3px; }
.cc-title      { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.cc-instructor { font-size: 11px; color: var(--text-muted); }

.cc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}
.cc-meta span  { white-space: nowrap; }
.ms            { font-size: 11px !important; font-weight: 400 !important; color: var(--text-muted) !important; }

.cc-deadline { font-size: 11px; color: var(--teal-600); margin-top: 3px; }
.cc-registered .cc-title { color: var(--teal-800); }
.cc-registered .cc-meta  { color: var(--teal-800); }
.cc-registered .ms       { color: var(--teal-600) !important; }
.cc-registered .cc-instructor { color: var(--teal-600); }

.cc-action-label      { font-size: 13px; font-weight: 500; white-space: nowrap; }
.cc-action-label.teal { color: var(--teal-400); }

/* ── Card Button ── */
.cc-btn-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cc-btn {
  height: 40px;
  min-width: 68px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  padding: 6px 12px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.cc-btn span       { font-size: 10px; opacity: 0.85; }
.cc-btn-primary    { background: var(--teal-400); color: var(--teal-50); }
.cc-btn-cancel     { background: var(--bg-card); border: 0.5px solid var(--teal-100); color: var(--teal-800); }
.cc-btn-signedup   { background: var(--teal-100); color: var(--teal-800); }
.cc-btn-disabled   { background: var(--gray-50); color: var(--text-muted); cursor: not-allowed; }
.cc-btn-sub        { font-size: 10px; color: var(--text-muted); text-align: center; white-space: nowrap; }
.cc-registered .cc-btn-sub { color: var(--teal-600); }

/* ── Badges ── */
.badge-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 2px; }
.badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 20px; }
.badge-group        { background: var(--teal-50);   color: var(--teal-800); }
.badge-semi-private { background: var(--amber-50);  color: var(--amber-800); }
.badge-private      { background: var(--purple-50); color: var(--purple-800); }
.badge-open         { background: var(--green-50);  color: var(--green-800); }
.badge-full         { background: var(--red-50);    color: var(--red-800); }
.badge-age          { background: var(--gray-50);   color: var(--gray-600); }
.badge-signedup     { background: var(--teal-100);  color: var(--teal-800); }

/* ── Detail Card ── */
.detail-card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 16px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.detail-cell { background: var(--bg-page); border-radius: var(--radius-md); padding: 10px 12px; }
.detail-cell .label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.detail-cell .val   { font-size: 14px; font-weight: 500; }

/* ── Section ── */
.section-title { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 18px 0 10px; }
.divider { border: none; border-top: 0.5px solid var(--border); margin: 14px 0; }
.attendee-list { display: flex; flex-wrap: wrap; gap: 6px; }
.attendee-chip { background: var(--gray-50); border-radius: 20px; padding: 4px 12px; font-size: 13px; color: var(--text-secondary); }

/* ── Buttons ── */
.btn { display: inline-block; padding: 9px 20px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; cursor: pointer; border: none; text-decoration: none; transition: opacity 0.15s; }
.btn:hover    { opacity: 0.88; }
.btn-primary  { background: var(--teal-400); color: var(--teal-50); }
.btn-outline  { background: none; border: 0.5px solid var(--border); color: var(--text-secondary); }
.btn-danger   { background: var(--red-50); color: var(--red-800); border: 0.5px solid var(--red-400); }
.btn-disabled { background: var(--gray-50); color: var(--text-muted); cursor: not-allowed; opacity: 0.7; }

/* ── Student Page ── */
.student-header { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; text-align: center; margin-bottom: 16px; }
.student-name { font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.student-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.pass-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--teal-50); border: 2px solid var(--teal-400); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 8px; }
.pass-number { font-size: 22px; font-weight: 500; color: var(--teal-800); line-height: 1; }
.pass-label  { font-size: 11px; color: var(--teal-600); }
.pass-desc   { font-size: 13px; color: var(--text-secondary); }

/* ── History ── */
.history-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 0.5px solid var(--border); }
.history-row:last-child { border-bottom: none; }
.history-row .muted { color: var(--text-muted); font-size: 12px; }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: 13px; margin-bottom: 16px; }
.alert-success { background: var(--teal-50);  color: var(--teal-800);  border: 0.5px solid var(--teal-100); }
.alert-error   { background: var(--red-50);   color: var(--red-800);   border: 0.5px solid #F7C1C1; }
.alert-info    { background: var(--amber-50); color: var(--amber-800); border: 0.5px solid #FAC775; }

/* ── Misc ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-secondary); }
.empty-state .muted { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.back-link { display: inline-block; font-size: 13px; color: var(--text-muted); text-decoration: none; margin-bottom: 16px; }
.back-link:hover { color: var(--teal-400); }
.footer { text-align: center; padding: 24px 16px; font-size: 12px; color: var(--text-muted); border-top: 0.5px solid var(--border); margin-top: 40px; }
.muted       { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.card-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

@media (max-width: 480px) {
  .detail-grid { grid-template-columns: 1fr; }
  .nav-sub     { display: none; }
}
