/* ============================================================
   알림 패널 스타일
   ============================================================ */

/* 알림 버튼 */
.main-page .header-noti-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-page .header-noti-btn:hover {
  background: rgba(255,255,255,0.32);
}

/* 알림 배지 */
.noti-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}

/* 알림 패널 */
.noti-panel {
  position: fixed;
  top: 56px;
  right: 12px;
  width: 340px;
  max-height: 440px;
  background: var(--pet-card, #fff);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  z-index: 1000;
  overflow: hidden;
  border: 1px solid var(--pet-border, #eee);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease,
              transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.22s;
}

.noti-panel.noti-panel--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.22s ease,
              transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s;
}

/* 패널 헤더 */
.noti-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pet-border, #eee);
}

.noti-panel-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--pet-text, #222);
}

.noti-read-all {
  background: none;
  border: none;
  color: var(--pet-primary, #ff6b6b);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.noti-read-all:hover {
  background: var(--pet-primary-light, #ffe8e8);
}

.noti-panel-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.noti-delete-read {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #aaa;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.noti-delete-read:hover {
  color: #888;
  background: #f0f0f0;
}

/* 알림 목록 */
.noti-panel-list {
  max-height: 380px;
  overflow-y: auto;
}

/* 알림 아이템 */
.noti-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--pet-text, #222);
  transition: background 0.15s;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.noti-item:hover {
  background: rgba(0,0,0,0.03);
}

.noti-item:last-child {
  border-bottom: none;
}

/* 미읽음 알림 */
.noti-unread {
  background: #f0f5ff;
}

.noti-unread:hover {
  background: #e8efff;
}

/* 알림 아바타 */
.noti-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--pet-primary-light, #ffe8e8);
}

/* 알림 본문 */
.noti-body {
  flex: 1;
  min-width: 0;
}

.noti-msg {
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 2px;
  word-break: break-word;
  color: var(--pet-text, #222);
}

.noti-time {
  font-size: 11px;
  color: var(--pet-text-sub, #999);
}

/* 미읽음 표시 점 */
.noti-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pet-primary, #ff6b6b);
  flex-shrink: 0;
  align-self: center;
}

/* 빈 상태 */
.noti-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--pet-text-sub, #999);
}

.noti-empty i {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  color: var(--pet-border, #ddd);
}

.noti-empty p {
  font-size: 14px;
  margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 420px) {
  .noti-panel {
    right: 0;
    left: 0;
    width: auto;
    border-radius: 0 0 16px 16px;
  }
}
