/* 게시판 공통 스타일 - board-style.css */

/* 구글 폰트 로드 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;600;700;900&family=Jua&display=swap');

/* 네온 애니메이션 */
@keyframes neonGlow {
    0%, 100% { text-shadow: 0 0 2px #F59E0B, 0 0 4px #F59E0B, 0 0 6px #F59E0B; }
    50% { text-shadow: 0 0 4px #FBBF24, 0 0 8px #FBBF24, 0 0 12px #FBBF24; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 그라데이션 텍스트 */
.gradient-text {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #FCD34D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* 네온 텍스트 */
.neon-text {
    color: #F59E0B;
    animation: neonGlow 2s ease-in-out infinite alternate;
    font-weight: 700;
}

.container, .board-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 유저 정보 바 */
.user-info {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
    backdrop-filter: blur(10px);
}

.user-info button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-left: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.user-info button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* 검색 및 카테고리 */
.board-header {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(45, 45, 45, 0.8) 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-bar select, .search-bar input {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-bar select:focus, .search-bar input:focus {
    border-color: #F59E0B;
    outline: none;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.search-bar input {
    flex: 1;
}

.search-bar input::placeholder {
    color: #999;
}

.search-bar button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* 카테고리 탭 */
.category-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.category-tabs a {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 25px;
    text-decoration: none;
    color: #ccc;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-tabs a:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.5);
    color: #F59E0B;
    transform: translateY(-2px);
}

.category-tabs a.active {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* 버튼 공통 스타일 */
.write-btn, .btn, .contact-btn {
    padding: 15px 35px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.3);
    border: none;
    cursor: pointer;
}

.write-btn:hover, .btn:hover, .contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

/* 게시글 목록 */
.board-list {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.board-list table {
    width: 100%;
    border-collapse: collapse;
}

.board-list th {
    background: rgba(245, 158, 11, 0.1);
    padding: 18px 15px;
    text-align: left;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
    font-weight: 700;
    color: #F59E0B;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.board-list td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    color: #ccc;
    transition: all 0.3s ease;
}

.board-list tr:hover td {
    background: rgba(245, 158, 11, 0.05);
    transform: translateX(5px);
}

.post-title {
    color: #FBBF24;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-title:hover {
    color: #F59E0B;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* 게시글 상세 스타일 */
.post-detail {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.post-header {
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.post-header h1, .post-header h2 {
    color: #F59E0B;
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.post-meta {
    color: #999;
    font-size: 14px;
}

.post-content {
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 30px;
    font-size: 16px;
}

/* 댓글 스타일 */
.comments-section {
    border-top: 2px solid rgba(245, 158, 11, 0.2);
    padding-top: 30px;
    margin-top: 40px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    color: white;
    resize: vertical;
    min-height: 100px;
}

.comment-item {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

/* 글쓰기 폼 스타일 */
.write-form {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(45, 45, 45, 0.9) 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #F59E0B;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 14px;
}

.form-group textarea {
    min-height: 300px;
    resize: vertical;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding: 30px;
}

.pagination a {
    padding: 10px 15px;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.2);
    text-decoration: none;
    color: #ccc;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.5);
    color: #F59E0B;
    transform: translateY(-2px);
}

.pagination a.active {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal.show {
    display: block;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    border: 2px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.2);
}

/* 스크롤바 커스텀 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #D97706, #F59E0B);
}

/* 에러 메시지 */
.error {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* 반응형 */
@media (max-width: 768px) {
    .container, .board-container {
        padding: 0 10px;
    }

    .board-header {
        padding: 20px 15px;
    }

    .search-bar {
        flex-direction: column;
    }

    .category-tabs {
        justify-content: center;
    }

    .board-list {
        overflow-x: auto;
    }

    .board-list table {
        min-width: 600px;
    }

    .post-detail, .write-form {
        padding: 20px;
    }
}