/* 공지사항 관련 스타일 */

/* 공지사항 섹션 */
.notice-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 공지사항 헤더 */
.notice-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(145deg, #f8f6f2 0%, #f5f1eb 100%);
    border-radius: 16px;
    border: 1px solid #e8e0d8;
}

.notice-header h1 {
    color: #6b4a2e;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.notice-header p {
    color: #8b6f4e;
    font-size: 1.1rem;
}

/* 공지사항 액션 */
.notice-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* 검색 폼 */
.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-form input[type="text"] {
    padding: 0.8rem 1rem;
    border: 2px solid #e8e0d8;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 300px;
    background: #faf8f5;
    transition: all 0.3s ease;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #6b4a2e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(107, 74, 46, 0.1);
}

.search-form button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #6b4a2e 0%, #8b6f4e 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 74, 46, 0.3);
}

/* 관리자 액션 */
.admin-actions {
    display: flex;
    gap: 1rem;
}

.btn-write {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-write:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: #fff;
}

/* 공지사항 테이블 */
.notice-table-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
}

.notice-table th {
    background: linear-gradient(135deg, #6b4a2e 0%, #8b6f4e 100%);
    color: #fff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center !important;
}

.notice-table th:nth-child(1) { /* 번호 */
    width: 80px;
}

.notice-table th:nth-child(2) { /* 제목 */
    width: auto;
}

.notice-table th:nth-child(3) { /* 작성자 */
    width: 120px;
}

.notice-table th:nth-child(4) { /* 작성일 */
    width: 120px;
}

.notice-table th:nth-child(5) { /* 조회 */
    width: 80px;
}

.notice-table td {
    padding: 1rem;
    border-bottom: 1px solid #e8e0d8;
    color: #333;
}

.notice-table td:nth-child(1) { /* 번호 */
    text-align: center;
    color: #8b6f4e;
    font-weight: 600;
}

.notice-table td:nth-child(2) { /* 제목 */
    font-weight: 500;
}

.notice-table td:nth-child(3) { /* 작성자 */
    text-align: center;
    color: #6b4a2e;
}

.notice-table td:nth-child(4) { /* 작성일 */
    text-align: center;
    color: #8b6f4e;
    font-size: 0.9rem;
}

.notice-table td:nth-child(5) { /* 조회 */
    text-align: center;
    color: #8b6f4e;
    font-size: 0.9rem;
}

.notice-table tr:hover {
    background: #f8f6f2;
}

/* 제목 셀 */
.title-cell {
    position: relative;
}

.title-cell a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    text-align: center;
}

.title-cell a:hover {
    color: #6b4a2e;
}

/* 빈 데이터 행 */
.no-data-row {
    text-align: center;
}

.no-data-row td {
    padding: 3rem;
    color: #8b6f4e;
    font-size: 1.1rem;
}

/* 공지사항 없음 */
.no-notices {
    text-align: center;
    padding: 3rem;
    color: #8b6f4e;
    font-size: 1.1rem;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.8rem 1rem;
    border: 2px solid #e8e0d8;
    background: #fff;
    color: #6b4a2e;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background: #f8f6f2;
    border-color: #6b4a2e;
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, #6b4a2e 0%, #8b6f4e 100%);
    color: #fff;
    border-color: #6b4a2e;
}

/* 반응형 */
@media (max-width: 768px) {
    .notice-section {
        padding: 1rem;
    }
    
    .notice-header h1 {
        font-size: 1.8rem;
    }
    
    .notice-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input[type="text"] {
        min-width: auto;
        width: 100%;
    }
    
    .notice-table {
        font-size: 0.9rem;
    }
    
    .notice-table th,
    .notice-table td {
        padding: 0.8rem 0.5rem;
    }
    
    .notice-table th:nth-child(3),
    .notice-table th:nth-child(4),
    .notice-table th:nth-child(5) {
        display: none;
    }
    
    .notice-table td:nth-child(3),
    .notice-table td:nth-child(4),
    .notice-table td:nth-child(5) {
        display: none;
    }
} 