/* 알림 시스템 스타일 */

/* 알림 아이콘 컨테이너 */
.notification-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.notification-icon-button {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 8px;
  font-size: 0;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-icon-button::before {
  content: "";
  width: 22px;
  height: 22px;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 1 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 1 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") no-repeat center / contain;
}

.notification-icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
  transform: translate(25%, -25%);
}

.notification-badge.hidden {
  display: none;
}

/* 알림 드로어 */
.notification-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.notification-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
}

.notification-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.notification-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid #e5e7eb;
}

.notification-drawer-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.notification-drawer-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.notification-drawer-close:hover {
  color: #111827;
}

.notification-drawer-actions {
  padding: 12px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

.notification-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.notification-item:hover {
  background-color: #f9fafb;
}

.notification-item.unread {
  background-color: #eff6ff;
}

.notification-item.unread:hover {
  background-color: #dbeafe;
}

.notification-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-item__message {
  font-size: 14px;
  color: #111827;
  margin: 0;
  line-height: 1.5;
}

.notification-item__time {
  font-size: 12px;
  color: #6b7280;
}

.notification-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  margin-left: 12px;
  flex-shrink: 0;
}

.notification-empty {
  padding: 60px 24px;
  text-align: center;
}

.notification-empty p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* 반응형 */
@media (max-width: 768px) {
  .notification-drawer {
    width: 100%;
    max-width: 100%;
  }
}
