/* Záhlaví a spodní lišta (v68): velký název na hlavních záložkách, dvouřádková hlavička detailu,
 * pět záložek s vyplněnou aktivní ikonou. Načítá se po styles.css a jeho pravidla přepisuje. */

:root { --nav-height: 64px; }

/* ===== Záhlaví ===== */
.header {
  background: var(--bg-secondary);
  background: color-mix(in srgb, var(--bg-secondary) 88%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 0 12px;
  gap: 8px;
}
.header h1 { margin: 0; min-width: 0; }

/* hlavní záložky */
.header.header-root {
  height: auto;
  min-height: 72px;
  padding: 14px 16px 10px 20px;
  align-items: flex-end;
  border-bottom: none;
}
.header.header-root h1 {
  flex: 1;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-round,
.header-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.header-round { background: var(--bg-tertiary, rgba(120, 120, 128, 0.24)); color: var(--text-primary, inherit); }
.header-fab { background: var(--blue); color: #fff; }

/* podřízené obrazovky */
.header.header-sub {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr) minmax(80px, 1fr);
  min-height: 60px;
}
.header-back {
  justify-self: start;
  max-width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 4px;
  background: none;
  border: none;
  color: var(--blue);
  font-size: 17px;
  cursor: pointer;
}
.header-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-center { text-align: center; min-width: 0; }
.header-center h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-subtitle {
  font-size: 12px;
  line-height: 1.2;
  color: var(--text-tertiary);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header.header-sub .header-actions { justify-self: end; gap: 0; }
.header.header-sub .header-fab { width: 40px; height: 40px; }

/* ===== Spodní lišta ===== */
.tab-bar {
  background: var(--bg-secondary);
  background: color-mix(in srgb, var(--bg-secondary) 88%, transparent);
  gap: 2px;
  padding: 8px 8px var(--safe-bottom);
  box-sizing: border-box;
}
.tab-item {
  gap: 2px;
  min-height: 52px;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
}
.tab-ico {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.tab-item svg { width: 24px; height: 24px; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-item.active { font-weight: 700; }
.tab-item.active .tab-ico { background: color-mix(in srgb, var(--blue) 20%, transparent); }
.tab-item.active svg { fill: currentColor; fill-opacity: 0.35; }
.tab-badge {
  position: absolute;
  top: -3px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #ff453a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
