/* =========================
   NOTICE
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #f5f5f5;
}

.notice-screen {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background-color: #ffffff;
}

.hidden {
  display: none !important;
}

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

.notice-header {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #eeeeee;
  background-color: #ffffff;
}

.notice-header h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: #111111;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.back-button {
  width: 32px;
  height: 32px;
  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;
}

.header-space {
  width: 32px;
  height: 32px;
}

/* =========================
   공지사항 목록
========================= */

.notice-list {
  padding: 0;
}

.notice-item {
  width: 100%;
  display: block;
  padding: 19px 20px;
  border: none;
  border-bottom: 1px solid #eeeeee;
  background-color: #ffffff;
  text-align: left;
  cursor: pointer;
}

.notice-item:active {
  background-color: #f8fafa;
}

.notice-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  background-color: #edf7f7;
  color: #52aead;
  font-size: 12px;
  font-weight: 700;
}

.notice-badge.update {
  background-color: #f1f3ff;
  color: #6978d3;
}

.notice-title {
  margin: 0;
  overflow: hidden;
  color: #222222;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-date {
  display: block;
  color: #aaaaaa;
  font-size: 12px;
  font-weight: 400;
}

/* =========================
   빈 화면
========================= */

.empty-notice {
  padding: 150px 20px;
  text-align: center;
}

.empty-notice strong {
  display: block;
  margin-bottom: 8px;
  color: #333333;
  font-size: 16px;
  font-weight: 600;
}

.empty-notice p {
  margin: 0;
  color: #888888;
  font-size: 13px;
  line-height: 1.5;
}

/* =========================
   공지사항 상세
========================= */

.notice-detail {
  padding: 26px 20px 50px;
}

.notice-detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 22px;
  margin-bottom: 12px;
  padding: 0 9px;
  border-radius: 11px;
  background-color: #edf7f7;
  color: #52aead;
  font-size: 12px;
  font-weight: 700;
}

.notice-detail-badge.update {
  background-color: #f1f3ff;
  color: #6978d3;
}

.notice-detail h2 {
  margin: 0 0 9px;
  color: #222222;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.notice-detail time {
  display: block;
  color: #aaaaaa;
  font-size: 13px;
}

.notice-detail-divider {
  height: 1px;
  margin: 24px 0;
  background-color: #eeeeee;
}

.notice-detail-content {
  color: #444444;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-line;
  word-break: keep-all;
}
