/* ==========================================================================
   quran-header.css — Верхняя панель модуля Коран
   Трёхколоночная сетка: гамбургер + название | лого | кнопка настроек
   ========================================================================== */

.quran-header {
  flex: 0 0 56px;
  height: 56px;
  padding: 0; /* перебиваем layout.css header { padding: 60px 20px 40px } */
  background: var(--white, #fff);
  color: var(--dark-gray, #333);
  z-index: 200;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  user-select: none;
  overflow: visible;
  text-align: start; /* перебиваем layout.css header { text-align: center } */
}

.quran-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 16px 0 8px;
  max-width: 100%;
}

/* --- Левая секция: гамбургер + арабское название --- */
.quran-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  overflow: hidden;
}

.quran-sidebar-toggle {
  display: none; /* скрыт на десктопе, показан через responsive.css на < 768px */
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--medium-gray, #888);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}

.quran-sidebar-toggle:hover {
  background: color-mix(in srgb, var(--emerald) 8%, transparent);
  color: var(--emerald, #059669);
}

.quran-header-title {
  font-family: var(--font-arabic-display, 'Amiri', serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--emerald, #059669);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Центральная секция: лого --- */
.quran-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quran-logo-link {
  display: flex;
  align-items: center;
}

.quran-logo-link img,
.quran-header-center img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* --- Правая секция: кнопка настроек --- */
.quran-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.quran-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: background .15s, transform .25s;
}

.quran-settings-btn:hover {
  background: rgba(255,255,255,.22);
}

.quran-settings-btn.active {
  transform: rotate(90deg);
}

.quran-settings-btn svg {
  width: 20px;
  height: 20px;
}

/* --- Ночной режим --- */
.night-mode .quran-header {
  background: #1a1a2e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.night-mode .quran-header-title {
  color: var(--emerald-light, #6ee7b7);
}

.night-mode .quran-sidebar-toggle {
  color: #9ca3af;
}

.night-mode .quran-sidebar-toggle:hover {
  color: var(--emerald-light, #6ee7b7);
}
