/* ── notice.html 전용 스타일 v5 — Dark Forest Edition ── */

.main { max-width: 800px; margin: 32px auto; padding: 0 24px 60px; }

.cat-tab { padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; }
.cat-tabs { margin-bottom: 24px; }

/* ── 공지 카드 ── */
.notice-list { display: flex; flex-direction: column; gap: 10px; }

.notice-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--green-border); box-shadow: var(--shadow-sm);
  overflow: hidden; cursor: pointer; transition: all 0.18s;
}
.notice-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green-border-bright); }
.notice-card.pinned    { border-left: 3px solid var(--green-vivid); }
.notice-card.important { border-left: 3px solid var(--accent); }

.notice-card-head { padding: 18px 20px 14px; display: flex; align-items: flex-start; gap: 12px; }

.notice-type { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.type-pinned    { background: rgba(34,197,94,0.12);  color: var(--green-bright); }
.type-important { background: rgba(249,115,22,0.12); color: #FB923C; }
.type-update    { background: rgba(59,130,246,0.12); color: #93C5FD; }
.type-event     { background: rgba(245,158,11,0.12); color: #FCD34D; }
.type-general   { background: rgba(107,114,128,0.15); color: #9CA3AF; }

.notice-title-wrap { flex: 1; }
.notice-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; line-height: 1.4; }
.notice-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.notice-meta span { display: flex; align-items: center; gap: 3px; }
.notice-arrow { font-size: 18px; color: var(--text-muted); flex-shrink: 0; margin-top: 2px; }

.notice-body {
  display: none; padding: 16px 20px 20px;
  font-size: 14px; color: var(--text-mid); line-height: 1.85;
  border-top: 1px solid rgba(34,197,94,0.07);
}
.notice-body.open { display: block; }
.notice-body p { margin-bottom: 10px; }
.notice-body p:last-child { margin-bottom: 0; }
.notice-body strong { color: var(--green-bright); font-weight: 700; }
.notice-body .notice-highlight {
  background: rgba(34,197,94,0.06);
  border-left: 3px solid var(--green-vivid);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px; margin: 12px 0; font-size: 13px;
}

.empty-state {
  text-align: center; padding: 60px 20px;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--green-border);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; color: var(--text-muted); }

@media (max-width: 900px) {
  .main { margin: 20px auto; padding: 0 16px 48px; }
  .cat-tabs { flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none; margin-left: -16px; margin-right: -16px; }
  .cat-tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 600px) {
  .notice-card-head { padding: 14px 16px 12px; }
  .notice-title { font-size: 14px; }
  .notice-body { padding: 14px 16px 18px; font-size: 13px; }
  .notice-card:hover { transform: none; }
}
