* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    min-height: 100vh;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* 상단 바 */
.top-bar {
    padding: 20px 30px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-bar .btn {
    padding: 12px 24px;
    border: none;
    background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
    text-decoration: none;
}

.top-bar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4);
}

/* 게시판 컨테이너 */
.board-container {
    padding: 40px 30px;
    animation: fadeInUp 0.6s ease;
}

.board-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.board-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e74c3c 0%, #ff6b35 100%);
    border-radius: 2px;
}

/* 테이블 스타일 */
.board-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 40px;
}

.board-table th {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 20px 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
    border-bottom: 2px solid #f8d7da;
}

.board-table td {
    padding: 18px 15px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

.board-table tr:hover td {
    background: #fff5f5;
}

.board-table tr:last-child td {
    border-bottom: none;
}

.board-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.board-table tbody tr:nth-child(even):hover {
    background: #fff5f5;
}

/* 컬럼 너비 설정 */
.board-table th:first-child,
.board-table td:first-child {
    width: 8%;
}

.board-table th:nth-child(2),
.board-table td:nth-child(2) {
    width: 35%;
    text-align: left;
    padding-left: 25px;
}

.board-table th:nth-child(3),
.board-table td:nth-child(3) {
    width: 25%;
}

.board-table th:nth-child(4),
.board-table td:nth-child(4) {
    width: 12%;
}

.board-table th:nth-child(5),
.board-table td:nth-child(5) {
    width: 20%;
}

/* 링크 스타일 */
.board-table a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.board-table a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* 평점 스타일 */
.board-table td:last-child {
    font-weight: 600;
    color: #ffc107;
}

/* 리뷰 수 스타일 */
.board-table td:nth-child(4) {
    color: #e74c3c;
    font-weight: 600;
}

/* 인기 게시물 특별 스타일링 */
.board-table td:nth-child(2) {
    position: relative;
}

.board-table tr:nth-child(-n+3) td:nth-child(2)::before {
    content: '🔥';
    margin-right: 8px;
    font-size: 16px;
}

.board-table tr:nth-child(1) td:nth-child(2)::before {
    content: '👑';
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.page-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-btn.active {
    background: linear-gradient(135deg, #e74c3c 0%, #ff6b35 100%);
    border-color: #e74c3c;
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.page-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* 이전/다음 버튼 */
.page-move-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-color: #6c757d;
    color: white;
    font-weight: 600;
}

.page-move-btn {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* 반응형 */
@media (max-width: 768px) {
    .main-container {
        margin: 0;
        border-radius: 0;
    }

    .board-container {
        padding: 20px 15px;
    }

    .top-bar {
        padding: 15px 20px;
    }

    .board-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .board-table {
        font-size: 12px;
        border-radius: 12px;
    }

    .board-table th,
    .board-table td {
        padding: 12px 8px;
    }

    .board-table th:nth-child(2),
    .board-table td:nth-child(2) {
        padding-left: 12px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 36px;
    }

    /* 모바일에서 테이블 컬럼 조정 */
    .board-table th:first-child,
    .board-table td:first-child {
        width: 10%;
    }

    .board-table th:nth-child(2),
    .board-table td:nth-child(2) {
        width: 40%;
    }

    .board-table th:nth-child(3),
    .board-table td:nth-child(3) {
        width: 25%;
    }

    .board-table th:nth-child(4),
    .board-table td:nth-child(4) {
        width: 15%;
    }

    .board-table th:nth-child(5),
    .board-table td:nth-child(5) {
        width: 10%;
    }
}

@media (max-width: 480px) {
    .board-table th:nth-child(4),
    .board-table td:nth-child(4),
    .board-table th:nth-child(5),
    .board-table td:nth-child(5) {
        display: none;
    }

    .board-table th:nth-child(2),
    .board-table td:nth-child(2) {
        width: 60%;
    }

    .board-table th:nth-child(3),
    .board-table td:nth-child(3) {
        width: 30%;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 테이블 행 호버 애니메이션 */
.board-table tbody tr {
    transition: all 0.3s ease;
}

.board-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* 인기 순위 표시 */
.rank-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c 0%, #ff6b35 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 8px;
    position: relative;
    top: -1px;
}

.rank-badge.top1 {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.rank-badge.top2 {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.rank-badge.top3 {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}