/* ============================================================
   Element4 Athletics — Schedule Widget PUBLIC CSS v1.0.1
   Author: EP Portfolio — https://epportfolio.com/
   Mobile-first, fully responsive
   ============================================================ */

.e4-schedule-widget {
  --e4-dark:    #0a0e1a;
  --e4-dark2:   #111827;
  --e4-dark3:   #1a2235;
  --e4-teal:    #00c9a7;
  --e4-border:  rgba(255,255,255,0.08);
  --e4-border2: rgba(0,201,167,0.3);
  --e4-text:    #f0f4f8;
  --e4-muted:   #8892a4;
  --e4-card:    #141c2b;

  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background: var(--e4-dark);
  border-radius: 16px;
  padding: clamp(16px, 4vw, 36px);
  color: var(--e4-text);
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

/* Header */
.e4-widget-eyebrow {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 3px; color: var(--e4-teal);
  margin-bottom: 6px; display: flex; align-items: center; gap: 10px;
}
.e4-widget-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--e4-teal); flex-shrink: 0; }
.e4-widget-title {
  font-size: clamp(24px, 5vw, 44px); font-weight: 900;
  text-transform: uppercase; letter-spacing: 2px; line-height: 1;
  margin-bottom: 6px; color: var(--e4-text);
}
.e4-widget-title span { color: var(--e4-teal); }
.e4-widget-sub { font-size: 13px; color: var(--e4-muted); margin-bottom: 20px; line-height: 1.6; }

/* ---- FILTER CHIPS ---- */
.e4-pub-chips {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.e4-pub-chip {
  padding: 7px 14px; border-radius: 20px;
  border: 1px solid var(--e4-border); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
  background: transparent; color: var(--e4-muted); font-family: inherit;
  white-space: nowrap;
  /* bigger tap target on mobile */
  min-height: 36px;
}
.e4-pub-chip:hover  { border-color: rgba(255,255,255,0.2); color: var(--e4-text); }
.e4-pub-chip.active { background: rgba(0,201,167,0.12); border-color: var(--e4-border2); color: var(--e4-teal); }
.e4-pub-chip-dot    { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ---- DESKTOP WEEKLY GRID (≥ 700px) ---- */
.e4-pub-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.e4-pub-day-col {
  background: var(--e4-card); border: 1px solid var(--e4-border);
  border-radius: 10px; overflow: hidden;
}
.e4-pub-day-name {
  background: var(--e4-dark3); padding: 8px 10px;
  text-align: center; font-weight: 900; font-size: 13px;
  letter-spacing: 1.5px; color: var(--e4-text);
  border-bottom: 2px solid var(--e4-teal); text-transform: uppercase;
}
.e4-pub-slots {
  padding: 8px; display: flex; flex-direction: column; gap: 5px; min-height: 70px;
}
.e4-pub-slot {
  border-radius: 6px; padding: 7px 9px; border-left: 3px solid;
  transition: filter 0.2s;
}
.e4-pub-slot:hover         { filter: brightness(1.15); }
.e4-pub-slot-time          { font-size: 10px; font-weight: 700; opacity: 0.8; }
.e4-pub-slot-name          { font-size: 12px; font-weight: 700; line-height: 1.2; color: #f0f4f8; margin-top: 2px; }
.e4-pub-slot-notes         { font-size: 10px; color: var(--e4-muted); margin-top: 2px; }
.e4-pub-empty              { text-align: center; padding: 20px 8px; color: rgba(255,255,255,0.1); font-size: 11px; }

/* ---- TABLET (3-col, 480–699px) ---- */
@media (max-width: 699px) {
  .e4-pub-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .e4-pub-day-name { font-size: 12px; padding: 7px 6px; }
  .e4-pub-slot-time { font-size: 9px; }
  .e4-pub-slot-name { font-size: 11px; }
}

/* ---- MOBILE: stacked card list (< 480px) ---- */
@media (max-width: 479px) {
  .e4-schedule-widget { border-radius: 12px; }

  /* hide the grid, show the list layout */
  .e4-pub-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* each day is a horizontal card */
  .e4-pub-day-col {
    border-radius: 10px;
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: stretch;
    min-height: 0;
    overflow: visible;
  }

  .e4-pub-day-name {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 12px 8px;
    font-size: 11px;
    letter-spacing: 2px;
    border-bottom: none;
    border-right: 2px solid var(--e4-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
  }

  .e4-pub-slots {
    padding: 8px 10px;
    min-height: 0;
    gap: 6px;
  }

  .e4-pub-slot { padding: 8px 10px; }
  .e4-pub-slot-time { font-size: 10px; }
  .e4-pub-slot-name { font-size: 13px; }

  /* chips: horizontal scroll instead of wrap */
  .e4-pub-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .e4-pub-chips::-webkit-scrollbar { display: none; }
}

/* ---- CLASS PAGE ---- */
.e4-class-page { padding: 0; }
.e4-class-page-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px; padding-bottom: 20px;
  border-bottom: 1px solid var(--e4-border); flex-wrap: wrap;
}
.e4-class-page-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.e4-class-page-title { font-size: clamp(22px, 4vw, 32px); font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.e4-class-stats { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.e4-class-stat { background: var(--e4-dark3); border: 1px solid var(--e4-border); border-radius: 8px; padding: 10px 14px; text-align: center; min-width: 70px; flex: 1; }
.e4-class-stat-num { font-size: clamp(18px, 4vw, 24px); font-weight: 900; line-height: 1; }
.e4-class-stat-label { font-size: 10px; color: var(--e4-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 3px; }
.e4-class-sessions { display: flex; flex-direction: column; gap: 8px; }
.e4-class-session {
  display: flex; align-items: center; gap: 12px;
  background: var(--e4-dark3); border: 1px solid var(--e4-border);
  border-radius: 8px; padding: 12px 14px; flex-wrap: wrap;
}
.e4-session-day { font-weight: 900; font-size: 14px; letter-spacing: 1px; width: 46px; flex-shrink: 0; color: var(--e4-muted); }
.e4-session-time { font-size: 13px; font-weight: 700; color: var(--e4-text); min-width: 120px; flex-shrink: 0; }
.e4-session-notes { font-size: 12px; color: var(--e4-muted); }
.e4-session-bar { flex: 1; height: 4px; background: var(--e4-border); border-radius: 2px; overflow: hidden; min-width: 40px; }
.e4-session-fill { height: 100%; border-radius: 2px; }

@media (max-width: 479px) {
  .e4-session-bar { display: none; }
  .e4-class-session { gap: 8px; }
}
