* {
    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: 100vw;
    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);
}

/* 검색바 */
.search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100vw;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    gap: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    width: 100%;
}

.search-bar input:focus {
    border-color: #4169E1;
    background: white;
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.search-btn {
    position: absolute;
    right: 10px;
    background: #007bff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.auth-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    padding: 12px 20px;
    border: 2px solid #007bff;
    border-radius: 20px;
    background: white;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn.primary {
    background: #007bff;
    color: white;
}

.btn.primary:hover {
    background: #0056b3;
}

.hidden {
    display: none;
}

/* 배너 */
.banner {
    background: linear-gradient(135deg, #87CEEB 0%, #4169E1 50%, #1E90FF 100%);
    height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    overflow: hidden;
}

.banner-text {
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 3;
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slide-btn:first-of-type {
    left: 30px;
}

.slide-btn:last-of-type {
    right: 30px;
}

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.dots span:first-child {
    background: white;
    transform: scale(1.2);
}

/* 게시판 섹션 */
.board-section {
    padding: 0 30px 40px;
}

.board-toggle {
    margin-bottom: 30px;
    text-align: center;
}

.toggle-container {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.toggle-btn {
    padding: 12px 30px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #666;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
    transform: translateY(-1px);
}

.toggle-btn:hover:not(.active) {
    color: #4169E1;
    transform: translateY(-1px);
}

.board-box {
    animation: fadeInUp 0.6s ease;
}

.board-box.hidden {
    display: none;
}

/* 테이블 스타일 */
.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: 20px;
}

.board-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
}

.board-table td {
    padding: 15px 12px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.2s ease;
}

.board-table tr:hover td {
    background: #f8f9fa;
    cursor: pointer;
}

.board-table tr:last-child td {
    border-bottom: none;
}

.board-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.board-table th:first-child,
.board-table td:first-child {
    width: 15%;
}

.board-table th:nth-child(2),
.board-table td:nth-child(2) {
    width: 55%;
    text-align: left;
    padding-left: 20px;
}

.board-table th:nth-child(3),
.board-table td:nth-child(3) {
    width: 20%;
}

.board-table th:nth-child(4),
.board-table td:nth-child(4) {
    width: 10%;
}

/* 더보기 버튼 */
.more-btn {
    width: 100%;
    padding: 12px 30px;
    border: none;
    background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
    text-decoration: none;
    display: block;
    text-align: center;
}

.more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4);
}

/* 평점 스타일 */
.board-table td:last-child {
    font-weight: 600;
    color: #ffc107;
}

/* 리뷰 수 스타일 */
.board-table td:nth-child(3) {
    color: #28a745;
    font-weight: 500;
}

/* 반응형 */
@media (max-width: 768px) {
    .main-container {
        margin: 0;
        border-radius: 0;
    }

    .top-bar, .search-bar {
        padding: 15px 20px;
    }

    .search-bar {
        flex-direction: column;
        gap: 20px;
    }

    .search-bar input {
        margin-right: 0;
        max-width: 100%;
    }

    .search-btn {
        position: absolute;
        right: 8px;
    }

    .board-section {
        padding: 0 20px 40px;
    }

    .banner {
        height: 200px;
    }

    .slide-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slide-btn:first-of-type {
        left: 15px;
    }

    .slide-btn:last-of-type {
        right: 15px;
    }

    .board-table {
        font-size: 12px;
    }

    .board-table th,
    .board-table td {
        padding: 10px 8px;
    }

    .auth-btns {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 숨김 처리 */
.hidden {
    display: none !important;
}