

.sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;              /* расстояние между иконкой и текстом */
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

/* Текст */
.sub-btn__text {
  white-space: nowrap;
}

/* Иконка через content */
.sub-btn__icon::before {
  content: "🔔"; /* по умолчанию */
  font-size: 16px;
  line-height: 1;
}

/* Активная подписка */
.sub-btn.is-active {
  background: #0a7d32;
}
.sub-btn.is-active .sub-btn__icon::before {
  content: "🔕"; /* или ✅ если хочешь "подтверждено" */
}
.sub-btn.is-active .sub-btn__text {
  content: "Вы подписаны";
}


/* ===== Хедер: уведомления ===== */
.header-notifications { position: relative; display: inline-block; }

.notif-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.notif-btn:hover { background: #333; }
.notif-btn__icon::before { content: "🔔"; font-size: 18px; line-height: 1; }
.notif-btn__badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: red; color: #fff; border-radius: 50%;
  font-size: 12px; font-weight: 700; line-height: 18px; text-align: center;
}

.notif-dropdown {
  display: none;
  position: absolute; right: 0; margin-top: 6px; width: 320px;
  background: #111; color: #fff; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  z-index: 9999;
}
.notif-dropdown.is-open { display: block; }
.notif-list { list-style: none; margin: 0; padding: 8px 0; }
.notif-list li { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.notif-list li:last-child { border-bottom: none; }
.notif-list a { color: #fff; text-decoration: none; display: block; }
.notif-empty { text-align: center; color: #aaa; }



/* можно в /css/notifications.css */
.notif{position:relative;display:inline-block}
.notif__btn{background:#222;color:#fff;border:0;border-radius:10px;padding:6px 10px;cursor:pointer}
.notif__badge{margin-left:6px;background:#e11;border-radius:999px;padding:2px 6px;font-weight:700}
.notif__badge.is-hidden{display:none}
.notif__head{display:flex;align-items:center;justify-content:space-between;padding:6px 8px;border-bottom:1px solid rgba(255,255,255,.08)}
.notif__mark{background:#333;color:#fff;border:0;border-radius:8px;padding:4px 8px;cursor:pointer}
.notif__list{max-height:55vh;overflow:auto;list-style:none;margin:0;padding:6px}
.notif__item{padding:8px;border-bottom:1px dashed rgba(255,255,255,.1)}
.notif__item small{display:block;opacity:.65;margin-top:4px}
.notif__empty{padding:12px;opacity:.7;text-align:center}



/* Контейнер списка */
.notif__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 60vh;         /* ограничиваем высоту */
  overflow-y: auto;         /* скролл, если много */
}

/* Один элемент */
.notif__item {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  line-height: 1.4;
}

/* Ссылка внутри */
.notif__item a {

  color: #9cf;              /* голубой текст */
  text-decoration: none;
  font-size: 14px;
}

.notif__item a:hover {
  text-decoration: underline;
}

/* Время */
.notif__item small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #aaa;
}

/* Когда список пуст */
.notif__empty {
  padding: 14px;
  text-align: center;
  color: #999;
}




/* показываем как блок */
#notif-panel { display: block; }

/* позиционирование и слой */
.notif { position: relative; }
.notif__panel{
  position: absolute;     /* можно сменить на fixed, если обрезается родителем */
  right: 0;
  top: calc(100% + 8px);
  width: 340px;
  background: #111;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding: 8px;
  z-index: 9999;          /* поверх хедера/меню */
}

/* если родитель-хедер обрезает overflow — лучше так: */
.header, .site-header, .menu { overflow: visible !important; } /* если можешь */


/* контейнер списка */
.notif__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* элемент */
.notif__item {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
  line-height: 1.4;
  color: #ddd;
}
.notif__item:last-child {
  border-bottom: none;
}

/* основной текст */
.notif__item a {
  color: #9cf;
  text-decoration: none;
  font-weight: 500;
}
.notif__item a:hover {
  text-decoration: underline;
}

/* имя модели выделим жирнее */
.notif__item a[href*="/pornstar/"],
.notif__item a[href*="/channel/"] {
  font-weight: 600;
  color: #fff;
}

/* список новых видео/галерей после двоеточия */
.notif__item a[href*="/video/"],
.notif__item a[href*="/gallery/"] {
  display: inline-block;
  margin-right: 4px;
  font-weight: 500;
  color: #9cf;
}

/* дата/время */
.notif__item small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}


/* ===== Mobile / Tablet ===== */
@media (max-width: 768px) {
  /* кнопки — крупнее под палец */
  .notif__btn,
  .notif__mark,
  .notif-btn {
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 10px;
  }

  .notif__badge,
  .notif-btn__badge {
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    top: -6px;
    right: -6px;
  }

  /* сам триггер можно оставить слева/справа в хедере */
  .notif { position: static; }

  /* превращаем дропдаун в нижний слайд-панель (sheet) */
  .notif__panel {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%;
    max-height: 75vh;
    border-radius: 14px 14px 0 0;
    padding: 12px;
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
    /* анимация появления снизу */
    transform: translateY(110%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
  }

  /* список — прокручиваемая область */
  .notif__list {
    max-height: calc(75vh - 56px); /* вычитаем шапку */
    padding: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .notif__head { padding: 10px 8px; }
  .notif__item { padding: 10px 12px; font-size: 15px; }
  .notif__item small { font-size: 12px; }

  /* мини-режим для очень узких устройств */
  .sub-btn { gap: 4px; padding: 8px 10px; font-size: 15px; }
  .sub-btn__icon::before { font-size: 18px; }
}

/* сверхузкие экраны */
@media (max-width: 420px) {
  .notif__panel { max-height: 80vh; }
  .notif__item { font-size: 14px; }
  .notif__btn strong,
  .notif__head strong { font-size: 16px; }
}

/* класс, который показываeт панель на мобилe */
.notif__panel.is-open {
  transform: translateY(0);
  opacity: 1;
}

/* если элемент скрыт атрибутом hidden — прячем полностью */
#notif-panel[hidden] { display: none !important; }


/* Когда панель должна быть показана на мобиле */
@media (max-width: 768px) {
  .notif__panel {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    max-height: 75vh;
    border-radius: 14px 14px 0 0;
    padding: 12px;
    box-shadow: 0 -10px 30px rgba(0,0,0,.35);
    background: #111;
    color: #fff;
    transform: translateY(110%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    z-index: 9999;
top: auto;
  }

  .notif__panel.is-open {
    transform: translateY(0);
    opacity: 1;
  }
}


.notif__close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  border-radius: 6px;
  transition: background .2s;
}
.notif__close:hover {
  background: rgba(255,255,255,.1);
}


