/* ===== 공지사항 공통 스타일 ===== */
:root {
    --primary: #d63031;
    --primary-dark: #b52526;
    --bg-dark: #1a1a1a;
    --bg-card: #1a1a1a;
    --border: #2a2a2a;
    --text-primary: #fff;
    --text-secondary: #888;
    --text-muted: #666;
}

/* 컨테이너 */
.notice-container,
.notice-detail-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 24px;
}

/* ===== 목록 페이지 ===== */
.notice-header {
    margin-bottom: 32px;
}

.notice-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.notice-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-item {
    display: block;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.notice-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.notice-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* 고정 표시 (핀 대신 텍스트) */
.notice-sticky {
    display: inline-block;
    background: #ff00023b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.notice-sticky::before {
    content: "📌 ";
    font-size: 0.9rem;
}

.notice-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.notice-item-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.notice-views {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== 상세 페이지 ===== */
.notice-detail-header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.notice-detail-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 0 0;
    line-height: 1.4;
    letter-spacing: -0.02em;
    word-break: break-word;
}

/* 상세 페이지 메타 정보 */
.notice-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.notice-meta svg {
    width: 16px;
    height: 16px;
    fill: var(--text-secondary);
    margin-right: 4px;
    vertical-align: middle;
}

.notice-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 내용 영역 */
.notice-content-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.notice-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-break: break-word;
}

.notice-content p {
    margin: 0 0 24px 0;
}

.notice-content p:last-child {
    margin-bottom: 0;
}

.notice-content strong {
    color: var(--primary);
    font-weight: 600;
}

.notice-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
    transition: all 0.2s;
}

.notice-content a:hover {
    border-bottom: 1px solid var(--primary);
    opacity: 0.8;
}

/* 구분선 */
.notice-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 40px 0 20px 0;
    opacity: 0.3;
}

/* 버튼 */
.notice-footer {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 40px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
}

.back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 빈 상태 */
.notice-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .notice-container,
    .notice-detail-container {
        margin: 30px auto;
        padding: 0 16px;
    }
    
    .notice-header h1,
    .notice-detail-header h1 {
        font-size: 1.6rem;
    }
    
    .notice-header p {
        font-size: 0.9rem;
    }
    
    .notice-meta {
        gap: 12px;
        font-size: 0.85rem;
    }
    
    .notice-item {
        padding: 18px;
    }
    
    .notice-item-title {
        font-size: 1rem;
    }
    
    .notice-content-wrapper {
        padding: 24px 20px;
    }
    
    .notice-content {
        font-size: 0.95rem;
    }
    
    .back-btn {
        padding: 10px 28px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
    
    .pagination {
        gap: 6px;
        margin-top: 32px;
    }
    
    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .notice-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .notice-content-wrapper {
        padding: 20px 16px;
    }
    
    .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}