/* 공지사항 — support/notice.html */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.notice-page { overflow-x: hidden; }

.notice-container {
    width: min(1200px, 100% - 2.5rem);
    margin-inline: auto;
}

/* Hero — 레이아웃은 hero-unified.css */
.notice-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(6, 12, 24, 0.94) 0%, rgba(15, 39, 68, 0.9) 50%, rgba(6, 12, 24, 0.88) 100%),
        radial-gradient(ellipse 70% 80% at 85% 30%, rgba(124, 58, 237, 0.2), transparent 55%);
    pointer-events: none;
    z-index: 0;
}
.notice-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 15% 60%, rgba(37, 99, 235, 0.25), transparent 55%);
    pointer-events: none;
}
/* Hero 타이포 — hero-unified와 중복 최소화 */
.notice-hero h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.notice-hero-lead {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

/* Main */
.notice-main {
    padding: 2.5rem 0 4.5rem;
}

/* Important */
.notice-important {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem 1.65rem;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.24);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.25s var(--ease-out), border-color 0.25s;
}
.notice-important:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow-hover);
}
.notice-important-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 800;
}
.notice-important-body { flex: 1; min-width: 0; }
.notice-important-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 0.65rem;
}
.notice-important h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
}
.notice-important-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.notice-important-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.notice-important-text {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text);
    line-height: 1.7;
}

/* Toolbar card */
.notice-toolbar-card {
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.notice-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.notice-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.notice-filter {
    padding: 0.55rem 1rem;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-elevated);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.notice-filter:hover {
    color: var(--text);
    border-color: rgba(37, 99, 235, 0.25);
    background: #fff;
}
.notice-filter.is-active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.notice-search {
    flex: 1 1 220px;
    max-width: 320px;
}
.notice-search input {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 1rem 0.65rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.notice-search input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.notice-search-wrap {
    position: relative;
}
.notice-search-wrap::before {
    content: '⌕';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

/* Badges */
.notice-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.notice-badge--cat-공지 { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.notice-badge--cat-업데이트 { background: rgba(124, 58, 237, 0.12); color: #6d28d9; }
.notice-badge--cat-점검 { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.notice-badge--cat-장애안내 { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.notice-badge--cat-자료안내 { background: rgba(16, 185, 129, 0.12); color: #047857; }

.notice-badge--st-진행중 { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.notice-badge--st-예정 { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.notice-badge--st-공개 { background: rgba(16, 185, 129, 0.12); color: #047857; }
.notice-badge--st-완료 { background: rgba(92, 99, 112, 0.15); color: var(--text-muted); }

/* Table (PC) */
.notice-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.notice-table-wrap { overflow-x: auto; }
.notice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.notice-table thead th {
    padding: 0.95rem 1.25rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(12, 13, 14, 0.03);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.notice-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.notice-table tbody tr:last-child { border-bottom: none; }
.notice-table tbody tr {
    cursor: default;
}
.notice-table tbody tr:hover { background: rgba(37, 99, 235, 0.05); }
.notice-table-empty {
    text-align: center;
    padding: 2.5rem 1.5rem !important;
    color: var(--text-muted);
}
.notice-table td {
    padding: 1.1rem 1.25rem;
    vertical-align: middle;
}
.notice-table .col-cat { width: 7.5rem; }
.notice-table .col-date { width: 7.5rem; color: var(--text-muted); font-size: 0.88rem; }
.notice-table .col-status { width: 6.5rem; }
.notice-table-title {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    display: block;
    line-height: 1.45;
}
.notice-table-title:hover { color: var(--accent); }
.notice-table-summary {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Cards (mobile) */
.notice-cards {
    display: none;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
}
.notice-panel.is-empty .notice-table-wrap,
.notice-panel.is-empty .notice-cards {
    display: none;
}
.notice-card {
    padding: 1.15rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.notice-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow-md);
}
.notice-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}
.notice-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.notice-card .notice-table-title { font-size: 0.95rem; }

.notice-empty {
    margin: 2rem 0 0;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}
.notice-empty[hidden] { display: none; }

.notice-count {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.notice-count strong { color: var(--text); }

.notice-contact {
    margin-top: 2.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.notice-contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.notice-contact a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .notice-toolbar { flex-direction: column; align-items: stretch; }
    .notice-search { max-width: none; }
    .notice-filters { gap: 0.4rem; }
    .notice-filter { flex: 1 1 auto; text-align: center; padding-inline: 0.65rem; font-size: 0.82rem; }
    .notice-table-wrap { display: none; }
    .notice-cards {
        display: flex;
        padding: 0.85rem;
    }
    .notice-panel .notice-cards { display: flex; }
    .notice-important { flex-direction: column; gap: 0.85rem; }
}

@media (min-width: 769px) {
    .notice-cards { display: none !important; }
}
