/* === Колокольчик + бейдж === */
.notify-bell{
  position: relative;
  cursor: pointer;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;
  line-height: 0;
  overflow: visible;
}

/* сам значок */
.notify-bell .icon{
  display: block;
  font-size: 20px;      /* чуть меньше, чтобы не “висел” */
  line-height: 1;
  transform: translateY(-1px); /* лёгкий подъём */
}

/* бейдж */
.notify-bell .badge{
  position: absolute;
  top: 2px;
  right: -2px;

  background: #ff3b30;
  color: #fff;
  border-radius: 999px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  min-width: 16px;
  height: 16px;

  display: none;               /* JS включает при наличии непрочитанных */
  align-items: center;
  justify-content: center;

  box-shadow: 0 0 0 2px #fff;
  z-index: 2;
}

/* === Выпадающий список уведомлений === */
.notify-dropdown{
  position: absolute;
  right: 8px;
  top: calc(100% + 6px);

  width: 320px;
  max-width: calc(100vw - 16px);

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  z-index: 1000;
  padding: 8px;
}

.notify-item{
  padding: 10px;
  border-radius: 8px;
  margin: 6px 0;
  background: #f8fafc;
}

.notify-item.unread{
  background: #eef2ff;
}

.notify-item .title{
  font-weight: 700;
  margin-bottom: 4px;
}

.notify-item .message{
  font-size: 14px;
  line-height: 1.35;
}

.notify-item .actions{
  margin-top: 6px;
}

/* чтобы на очень узких экранах не вылезало за края */
@media (max-width: 480px){
  .notify-dropdown{
    right: 4px;
    left: 4px;
    width: auto;
  }
}

/* === Мобильная шапка: логотип + погода + колокол + бургер === */
@media (max-width: 900px) {

  /* компактнее шапка */
  .top-bar {
    padding: 8px 14px;
    column-gap: 10px;
  }

  .header-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* погода: иконка + температура, без описания */
  .weather-inline {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 14px;
    color: #374151;
  }

  /* если в компоненте есть .weather-info .desc — прячем на мобилке */
  .weather-inline .weather-info .desc {
    display: none;
  }

  .weather-inline .weather-info .temp {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
  }

  /* правая часть: колокольчик + бургер по одной линии */
  .header-right {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }

  /* сам колокольчик как «кнопка» */
  .header-right .notify-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    line-height: 0;
    position: relative;
    margin-right: 2px;   /* расстояние до бургера */
    overflow: visible;
  }

  .header-right .notify-bell .icon {
    display: block;
    font-size: 20px;
    line-height: 1;
    transform: translateY(-1px); /* чуть выше для оптического центра */
  }

  /* красный бейдж поверх колокольчика */
  .header-right .notify-bell .badge {
    position: absolute;
    top: 2px;
    right: -2px;
    background: #ff3b30;
    color: #fff;
    border-radius: 999px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    display: none;              /* JS включает при наличии уведомлений */
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff; /* белая окантовка вокруг кружка */
    z-index: 2;
  }

  /* бургер — такого же размера, по центру, справа от колокола */
  .header-right .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    font-size: 22px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
  }
}

