/* =========================================================
   CONTENITORE CAMPANELLA NOTIFICHE
   ========================================================= */

#notifiche-campana.nc-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  line-height: 1;
}

/* =========================================================
   BOTTONE CAMPANELLA NOTIFICHE
   ========================================================= */

.nc-bell {
  background-color: transparent;
  border: none;
  cursor: pointer;

  border-radius: 50%;
  width: 50px;
  height: 50px;

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

  position: relative;

  padding: 0;
  line-height: 0;

  transition-property: background-color;
  transition-duration: 0.18s;
  transition-timing-function: ease;
}

/* =========================================================
   DISATTIVA CERCHIO / RIPPLE DEL TEMA (SOLO SE ESISTE)
   ========================================================= */

.nc-bell::before,
.nc-bell::after {
  content: none !important;
  display: none !important;
}

/* =========================================================
   CERCHIO HOVER CORRETTO (SENZA PSEUDO ELEMENTI)
   ========================================================= */

.nc-bell:hover {
  background-color: #121212;
}

/* Evita cerchi strani su focus */
.nc-bell:focus,
.nc-bell:focus-visible {
  outline: none;
}

/* =========================================================
   ICONA CAMPANELLA
   ========================================================= */

.nc-bell-icon {
  font-size: 35px;
  color: #ffffff;

  position: relative;

  display: block;
  line-height: 1;

  transform: none;
  left: auto;
  top: auto;
}


/* =========================================================
   BADGE NUMERO NOTIFICHE
   ========================================================= */

.nc-badge {
  position: absolute;
  top: -5px;
  left: 15px;

  background-color: #cc0000;
  color: #ffffff;

  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;

  padding-top: 4px;
  padding-right: 5px;
  padding-bottom: 4px;
  padding-left: 5px;

  min-width: 8px;
  max-width: 18px;

  text-align: center;
  line-height: 10px;

  font-family: "Roboto", "Arial", sans-serif;
}

/* =========================================================
   PANNELLO NOTIFICHE – STILE BASE
   ========================================================= */

#notifiche-campana #elenco-notifiche.nc-panel {
  display: none;

  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: 380px;
  max-width: calc(100vw - 24px);

  background-color: rgba(18, 18, 18, 0.82);
  color: #ffffff;

  border-radius: 12px;

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  z-index: 2147483647;
}

/* Stato aperto gestito da JavaScript */
#notifiche-campana #elenco-notifiche.nc-panel.is-open {
  display: block;
}

/* =========================================================
   HEADER DEL PANNELLO
   ========================================================= */

.nc-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;

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

  padding-top: 16px;
  padding-right: 18px;
  padding-bottom: 16px;
  padding-left: 18px;

  background-color: rgba(18, 18, 18, 0.92);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nc-panel-title {
  color: #ffffff;
}

.nc-mark-all {
  background-color: transparent;
  border: none;

  color: #ffffff;
  cursor: pointer;

  font-size: 16px;
  margin-right: 10px;
  padding: 0;

  line-height: 0;
}

/* =========================================================
   LISTA NOTIFICHE
   ========================================================= */

.nc-list {
  list-style-type: none;
  margin: 0;

  padding-top: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
}

.nc-item {
  position: relative;
  padding: 0;
  border-bottom: none;
}

.nc-item.is-unread {
  background-color: rgba(183, 109, 189, 0.12);
}

.nc-item.is-read {
  opacity: 0.75;
}

/* =========================================================
   CONTENUTO INTERNO NOTIFICA
   ========================================================= */

.nc-notifica-inner {
  display: flex;
  gap: 12px;

  padding-top: 12px;
  padding-bottom: 12px;

  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

/* Thumbnail episodio */
.nc-thumb img {
  width: 96px;
  height: 54px;

  object-fit: cover;

  border-radius: 6px;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* Avatar utente */
.nc-thumb img.avatar {
  width: 48px;
  height: 48px;

  border-radius: 50%;
  object-fit: cover;
}

/* Testo */
.nc-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nc-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;

  margin-bottom: 4px;

  color: #ffffff;
}

.nc-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;

  color: rgba(255, 255, 255, 0.85);
}

/* Timestamp */
.nc-time {
  font-size: 11px;
  font-weight: 500;

  margin-top: 6px;

  color: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   STATO VUOTO
   ========================================================= */

.nc-empty {
  padding-top: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
  padding-left: 10px;

  text-align: center;

  background-color: #b76dbd;
  color: #000000;

  border-radius: 4px;
}

/* =========================================================
   MOBILE – PANNELLO FISSO ALLA VIEWPORT
   ========================================================= */

@media (max-width: 479.98px) {

  #notifiche-campana.nc-wrap {
    position: static !important;
  }

  #notifiche-campana #elenco-notifiche.nc-panel {
    position: fixed !important;

    top: 110px !important;
    left: 12px !important;
    right: 12px !important;

    width: auto !important;
    max-width: 520px !important;

    transform: none !important;
    -webkit-transform: none !important;

    z-index: 2147483647 !important;

    padding-left: env(safe-area-inset-left) !important;
    padding-right: env(safe-area-inset-right) !important;
  }

  header,
  .site-header,
  .elementor-location-header,
  .elementor-sticky,
  .jws-header,
  .jws-menu,
  .mobile-menu,
  .elementor-nav-menu__container {
    transform: none !important;
    filter: none !important;
    perspective: none !important;
  }
}

/* =========================================================
   MOSTRA ALTRO / MOSTRA MENO – BARRA FULL WIDTH
   ========================================================= */

#notifiche-campana #elenco-notifiche #nc-show-more,
#notifiche-campana #elenco-notifiche .nc-show-more,
#notifiche-campana #elenco-notifiche #nc-show-less,
#notifiche-campana #elenco-notifiche .nc-show-less {
  display: block !important;
  width: 100% !important;

  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.92) !important;

  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 0 !important;

  padding: 14px 0 !important;
  margin: 0 !important;

  text-align: center !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;

  cursor: pointer !important;

  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  outline: none !important;
}

#notifiche-campana #elenco-notifiche #nc-show-more:hover,
#notifiche-campana #elenco-notifiche .nc-show-more:hover,
#notifiche-campana #elenco-notifiche #nc-show-less:hover,
#notifiche-campana #elenco-notifiche .nc-show-less:hover {
  background: rgba(255,255,255,0.12) !important;
}
