/* =========================================================
   SISIMO — Notification drawer (right-side panel)
   ========================================================= */

.notif-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 99999998;
}
.notif-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.notif-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: #ffffff;
  z-index: 99999999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  opacity: 0;
  transition: transform .38s cubic-bezier(0.22, 1, 0.36, 1), visibility .38s, opacity .38s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}
.notif-drawer.is-active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}

@media (max-width: 1023px) { .notif-drawer { width: 360px; } }
@media (max-width: 767px)  { .notif-drawer { width: 100vw; } }

/* ---- Header ---- */
.notif-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 18px 0 20px;
  border-bottom: 1px solid #E5E5E5;
}
.notif-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 500;
  color: #111111;
}
.notif-header-title svg { width: 22px; height: 22px; flex: none; color: #111111; }
.notif-close {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s ease;
}
.notif-close svg { width: 22px; height: 22px; }
.notif-close:hover { background: #F4F4F5; }

/* ---- List ---- */
.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 0 18px;
  scrollbar-width: thin;
}

.notif-card {
  display: grid;
  grid-template-columns: 20px 42px 1fr 20px;
  align-items: center;
  gap: 10px;
  margin: 0 10px 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: background .15s ease;
  min-height: 100px;
}
.notif-card:last-child { margin-bottom: 0; }
.notif-card:hover { background: #FAFAFA; }
.notif-card:hover .notif-arrow { transform: translateX(3px); }

.notif-card.is-read { background: transparent; box-shadow: none; }
.notif-card.is-read .notif-dot { background: transparent; border: 1.5px solid #D8D8D8; }

.notif-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #79C18E;
  justify-self: center;
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.notif-icon svg { width: 20px; height: 20px; }
.notif-icon--instagram {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  color: #fff;
}
.notif-icon--phone { background: #EAFBF0; color: #25D366; }
.notif-icon--promotion { background: #FFF0F4; color: var(--theme-color, #F76188); }

.notif-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.notif-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #111111;
}
.notif-message {
  font-size: 12.5px;
  font-weight: 400;
  color: #666666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  transition: transform .15s ease;
}
.notif-arrow svg { width: 18px; height: 18px; }

/* ---- Empty state ---- */
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px 0;
  color: #999999;
}
.notif-empty svg { width: 40px; height: 40px; margin-bottom: 14px; color: #CCCCCC; }
.notif-empty-title { font-size: 15px; font-weight: 600; color: #111111; margin: 0 0 4px; }
.notif-empty-hint { font-size: 13px; margin: 0; }

/* ---- Bell badge / animation (button lives in header-style-1.blade.php) ---- */
.js-notification-toggle .gh-badge--notif.is-hidden { display: none; }
@keyframes notif-bell-ring {
  0% { transform: rotate(0); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(5deg); }
  100% { transform: rotate(0); }
}
.js-notification-toggle.is-ringing .gh-icon { animation: notif-bell-ring .5s ease; }

body.notif-open { overflow: hidden; }
