/* headers.css - V28 移植 / ヘッダー画像 + スケジュールバナー (v32) */

/* ── サイドバー上部ヘッダー画像 ── */
#sb-header-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: none;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  user-select: none;
  -webkit-user-drag: none;
}
#sb-header-img.visible { display: block; }

/* ── デイリーヘッダー画像 (メイン上部) ── */
#daily-header-img {
  width: 100%;
  height: 120px;
  display: none;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
#daily-header-img.visible { display: block; }
#daily-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── 本日の予定バナー ── */
#sched-banner {
  padding: 8px 14px 9px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  display: none;
  flex-shrink: 0;
}
#sched-banner.visible { display: block; }

.sb-banner-title {
  font-size: 9px;
  color: var(--fg-mute);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.sb-event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sb-event {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  border: 1px solid var(--border);
  background: var(--bg-sunk);
  line-height: 1.5;
}
.sb-event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sb-event-t { font-weight: 700; color: var(--fg); }
.sb-event-when { color: var(--fg-mute); font-size: 11px; }
.sb-event-left {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
}
.sb-event-left.is-now {
  color: var(--ok);
}
.sb-event-left.is-end {
  color: var(--fg-dim);
}

/* ── 設定パネル: ヘッダー画像セクション ── */
.headers-set {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.headers-set__row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.headers-set__label {
  font-size: 11px;
  color: var(--fg-mute);
  min-width: 60px;
}
.headers-set__preview {
  width: 100%;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-top: 4px;
}
.headers-set__hint {
  font-size: 10px;
  color: var(--fg-dim);
  margin-top: 2px;
}
.headers-set__file {
  font-size: 11px;
  color: var(--fg-mute);
}
.headers-set__slider {
  flex: 1;
  min-width: 100px;
}
.headers-set__num {
  font-size: 11px;
  color: var(--fg-mute);
  min-width: 36px;
  text-align: right;
}
