/* notice.css — NOTICE 페이지 전용 (공통부는 common.css) */

.notice-card {
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(150, 94, 171, 0.11);
  padding: 22px;
  overflow: hidden;
}

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.notice-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notice-heading h2 { font-size: 22px; color: #4b3659; font-weight: 950; }
.notice-count { padding: 7px 10px; border-radius: var(--radius-sm); background: rgba(255,255,255,.78); color: #8a4dae; font-size: 12px; font-weight: 950; box-shadow: inset 0 0 0 1px rgba(220,183,238,.45); }
.search-box { min-width: 240px; border: 1px solid rgba(226, 194, 223, 0.66); border-radius: var(--radius-sm); background: rgba(255,255,255,.92); padding: 12px 14px; color: #765a88; font-family: inherit; font-weight: 850; outline: none; }

.notice-list { display: grid; gap: 12px; }
.notice-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px; border-radius: var(--radius-md); background: var(--soft-card); border: 1px solid rgba(236, 206, 232, 0.75); transition: transform .12s ease, box-shadow .12s ease; }
.notice-item:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(150, 94, 171, 0.13); }
.notice-item-left { min-width: 0; }
.notice-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); padding: 6px 9px; font-size: 12px; font-weight: 950; background: rgba(255,255,255,.85); color: #735b84; box-shadow: inset 0 0 0 1px rgba(220,183,238,.45); }
.badge.pin { background: linear-gradient(135deg, #ff7eb7, #a965e8); color: #fff; box-shadow: 0 8px 18px rgba(176, 97, 209, .18); }
.notice-title { font-size: 16px; line-height: 1.35; font-weight: 950; color: #4b3659; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-summary { margin-top: 7px; font-size: 13px; line-height: 1.45; color: var(--text-sub); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notice-date { color: #9a8aa3; font-size: 13px; font-weight: 900; white-space: nowrap; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; padding-top: 4px; }
.page-btn { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid rgba(226, 194, 223, 0.72); border-radius: var(--radius-sm); background: rgba(255,255,255,.88); color: #7b628a; font-family: inherit; font-size: 13px; font-weight: 950; cursor: pointer; box-shadow: 0 7px 16px rgba(150, 94, 171, 0.07); }
.page-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(150, 94, 171, 0.12); }
.page-btn.active { border-color: transparent; background: #2f2638; color: #fff; box-shadow: 0 9px 20px rgba(47, 38, 56, .18); }
.page-btn:disabled { cursor: default; opacity: .42; transform: none; box-shadow: none; }
.page-btn.edge { color: #8c7a96; background: rgba(255,255,255,.68); }
.page-ellipsis { min-width: 24px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #9a8aa3; font-size: 13px; font-weight: 950; }

.detail-wrap { display: none; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.back-btn { border: 1px solid rgba(226, 194, 223, 0.66); border-radius: var(--radius-sm); padding: 11px 15px; background: rgba(255,255,255,.9); color: #7b628a; font-family: inherit; font-size: 13px; font-weight: 950; cursor: pointer; box-shadow: 0 8px 18px rgba(150, 94, 171, 0.08); }
.detail-bottom-actions { display: flex; justify-content: center; margin-top: 18px; }
.detail-bottom-actions .back-btn { min-width: 118px; }
.detail-box { border-radius: var(--radius-md); background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,246,252,.86)); border: 1px solid rgba(236, 206, 232, 0.78); padding: 24px; }
.detail-title { margin-top: 12px; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; font-weight: 950; color: #4b3659; }
.detail-content { margin-top: 22px; color: #5f4d69; font-size: 16px; line-height: 1.85; font-weight: 650; white-space: pre-line; word-break: keep-all; }
.empty { text-align: center; padding: 42px 16px; font-weight: 900; color: #9d7daf; }
body.detail-mode .hero { display: none; }
body.detail-mode .page { padding-top: 26px; }

.related-card { margin-top: 18px; border-radius: var(--radius-md); background: rgba(255,255,255,.72); border: 1px solid rgba(236, 206, 232, 0.78); overflow: hidden; }
.related-title { padding: 14px 16px; font-size: 15px; font-weight: 950; color: #4b3659; background: linear-gradient(135deg, rgba(255,127,200,.13), rgba(167,127,255,.12)); border-bottom: 1px solid rgba(226, 194, 223, 0.55); }
.related-list { display: grid; }
.related-item { display: grid; grid-template-columns: 86px minmax(0, 1fr) 110px; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid rgba(226, 194, 223, 0.38); background: rgba(255,255,255,.35); }
.related-item:last-child { border-bottom: 0; }
.related-item:hover { background: rgba(255,245,251,.72); }
.related-category { justify-self: start; max-width: 86px; padding: 5px 7px; border-radius: 6px; background: rgba(255,255,255,.86); color: #8a4dae; font-size: 11px; font-weight: 950; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(220,183,238,.45); }
.related-link-title { min-width: 0; color: #4b3659; font-size: 14px; font-weight: 950; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-date { color: #9a8aa3; font-size: 12px; font-weight: 900; text-align: right; white-space: nowrap; }

@media (max-width: 700px) {
  .notice-card { border-radius: var(--radius-md); padding: 14px 10px; }
  .topbar { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 12px; }
  .notice-heading h2 { font-size: 18px; }
  .search-box { width: 100%; min-width: 0; padding: 10px 12px; font-size: 13px; }
  .notice-list { gap: 8px; }
  .notice-item { grid-template-columns: 1fr; gap: 8px; padding: 13px 12px; border-radius: var(--radius-sm); }
  .notice-title { font-size: 14px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .notice-summary { font-size: 12px; }
  .notice-date { font-size: 11px; }
  .badge { font-size: 10px; padding: 5px 7px; }
  .pagination { gap: 5px; margin-top: 14px; }
  .page-btn { min-width: 31px; height: 31px; padding: 0 8px; font-size: 12px; }
  .page-ellipsis { min-width: 18px; height: 31px; font-size: 11px; }
  .related-item { grid-template-columns: 64px minmax(0, 1fr) 72px; gap: 7px; padding: 11px 12px; }
  .related-category { max-width: 64px; padding: 4px 5px; font-size: 10px; }
  .related-link-title { font-size: 12px; }
  .related-date { font-size: 10px; }
  .detail-box { padding: 17px 14px; border-radius: var(--radius-sm); }
  .detail-title { font-size: 21px; }
  .detail-content { margin-top: 16px; font-size: 14px; line-height: 1.75; word-break: normal; }
}
