/**
 * Board Page Styles - 공통 게시판 스타일
 */

/* ==========================================================================
   기본 컨테이너
   ========================================================================== */
   .board-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* ==========================================================================
   헤더 영역
   ========================================================================== */
.board-header {
    padding: 30px 0;
    border-bottom: 3px solid #047857;
    margin-bottom: 30px;
}

.board-title {
    font-size: 32px;
    font-weight: bold;
    color: #252525;
    letter-spacing: -1px;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   탭 네비게이션
   ========================================================================== */
.tab-section {
    display: flex;
    gap: 2px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    height: 60px;
    background: linear-gradient(135deg, #919191, #7a7a7a);
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.tab-btn:hover:not(.active) {
    background: linear-gradient(135deg, #059669, #047857);
}

/* ==========================================================================
   검색 영역
   ========================================================================== */
.search-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    gap: 8px;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.search-select {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 160px;
    background: white;
}

.search-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e5e7eb!important;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    padding: 0.25rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-btn::before {
    content: '🔍';
    font-size: 18px;
    color: white;
    z-index: 1;
    position: relative;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.write-btn {
    background: linear-gradient(135deg, #919493 0%, #696b6b 100%);
    color: white;
    border: none;
    padding: 0.25rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.write-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(134, 136, 135, 0.3);
}

/* ==========================================================================
   테이블 영역
   ========================================================================== */
.board-table-container {
    margin: 2rem 0;
}

.table-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.board-table thead tr {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.board-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: white;
}

.board-table .col-number {
    width: 80px;
    text-align: center;
}

.board-table .col-title {
    width: auto;
    min-width: 300px;
}

.board-table .col-author {
    width: 80px;
    text-align: center;
}

.board-table .col-date {
    width: 120px;
    text-align: center;
}

.board-table .col-views {
    width: 80px;
    text-align: center;
}

/* ==========================================================================
   테이블 행 스타일 (r.inc에서 생성되는 구조)
   ========================================================================== */
.board-row {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.board-row:hover {
    background-color: #f8fafc;
}

.board-row td {
    padding: 1rem;
    vertical-align: middle;
}

/* 번호 열 스타일 */
.col-number {
    text-align: center;
}

.board-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.number-text {
    color: #6b7280;
    font-weight: 500;
}

/* 제목 열 스타일 */
.title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.board-link {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
}

.board-link:hover {
    color: #059669;
    text-decoration: underline;
}

.park-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.park-tag.park-gurye {
    background: #dcfce7;
    color: #166534;
}

.park-tag.park-goesan {
    background: #dbeafe;
    color: #1e40af;
}

.new-badge {
    background: linear-gradient(135deg, #ffd727 0%, #ff9641 100%);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* 작성자, 날짜, 조회수 스타일 */
.col-author, .col-date, .col-views {
    text-align: center;
}

.author-text, .date-text, .views-text {
    color: #6b7280;
    font-size: 0.9rem;
}

/* ==========================================================================
   페이지네이션
   ========================================================================== */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 2rem;
    font-size: 11pt;
}

/* ==========================================================================
   접근성
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 포커스 스타일 */
.tab-btn:focus,
.search-btn:focus,
.search-input:focus,
.search-select:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* 키보드 네비게이션 */
.board-table tbody tr:focus-within {
    background: #e3f2fd;
    outline: 2px solid #4a90e2;
}

.reply-badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    background: linear-gradient(135deg, #28a745, #20954e);
    color: white;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.3rem;
}