/* =========================
   NOTIFICATIONS
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;

  background-color: #f5f5f5;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.notification-screen {
  min-height: 100vh;

  background-color: #ffffff;
}

/* =========================
   hidden
========================= */

.hidden {
  display: none !important;
}

/* =========================
   헤더
========================= */

.notification-header {
  height: 58px;

  display: grid;

  grid-template-columns:
    60px
    1fr
    60px;

  align-items: center;

  padding: 0 12px;

  border-bottom: 1px solid #eeeeee;
}

.notification-header h1 {
  margin: 0;

  text-align: center;

  color: #111111;

  font-size: 15px;
  font-weight: 600;
}

.back-button {
  width: 40px;
  height: 40px;

  display: flex;

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

  padding: 0;

  border: none;

  background: none;

  cursor: pointer;
}

.back-button img {
  width: 22px;
  height: 22px;

  display: block;
}

.read-all-button {
  padding: 0;

  border: none;

  background: none;

  color: #777777;

  font-size: 12px;

  cursor: pointer;

  transform: translateX(-5px);
}

/* =========================
   알림 목록
========================= */

.notification-list {
  padding: 0 0 30px;
}

/* =========================
   알림 카드
========================= */

.notification-item {
  position: relative;

  display: flex;

  gap: 12px;

  padding: 18px 16px;

  border-bottom: 1px solid #eeeeee;

  cursor: pointer;

  transition: background-color 0.2s ease;
}

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

/* =========================
   알림 아이콘
========================= */

.notification-icon {
  width: 38px;
  height: 38px;

  flex-shrink: 0;

  display: flex;

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

  border-radius: 50%;

  background-color: #edf7f7;

  color: #52aead;

  font-size: 18px;
  line-height: 1;
}

/* =========================
   내용
========================= */

.notification-content {
  min-width: 0;

  flex: 1;
}

.notification-title {
  margin: 0 0 5px;

  color: #222222;

  font-size: 12px;
  font-weight: 600;
}

.notification-message {
  margin: 0 0 6px;

  color: #666666;

  font-size: 11px;

  line-height: 1.5;
}

.notification-time {
  color: #aaaaaa;

  font-size: 9px;
}

/* =========================
   안 읽음 점
========================= */

.unread-dot {
  position: absolute;

  top: 18px;
  right: 16px;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background-color: #52aead;
}

/* =========================
   빈 알림
========================= */

.empty-notification {
  padding: 120px 20px;

  text-align: center;
}

.empty-notification strong {
  display: block;

  margin-bottom: 7px;

  color: #555555;

  font-size: 14px;
}

.empty-notification p {
  margin: 0;

  color: #999999;

  font-size: 11px;
}

.notification-icon.plus-icon {
  font-size: 25px;
  line-height: 1;
}
