/* -----------------------------------
   HEADER WRAPPER
----------------------------------- */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
}

/* -----------------------------------
   HEADER
----------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 0;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.header-container {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* -----------------------------------
   LEFT SIDE — LOGO + TITLE + TIMER + DATE
----------------------------------- */
.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.header-left-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.header-left h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
}

.header-left .date {
  margin-top: 2px;
  font-size: 18px;
  opacity: 0.75;
}

.header-logo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

/* -----------------------------------
   COUNTDOWN TIMER
----------------------------------- */
.header-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.header-timer-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.header-countdown {
  font-size: 0.95rem;
  font-weight: 600;
  color: #666;
  opacity: 0.9;
}

body.dark-mode .header-countdown,
body.dark-mode .header-timer-label {
  color: var(--text-light);
  opacity: 1;
}

/* -----------------------------------
   RIGHT SIDE — CONTROLS
----------------------------------- */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  background: var(--card-hover);
  border-color: var(--accent);
}

body.dark-mode .icon-btn {
  background: var(--card);
  color: var(--text-light);
}

.icon-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* -----------------------------------
   SUBHEADER BLACK BAR
----------------------------------- */
.subheader-bar {
  position: sticky;
  top: 60px;
  height: 8px;
  background: #000;
  z-index: 999;
  padding-left: 100px;
  padding-right: 18px;
  box-sizing: border-box;
}
