/* 폰트 임포트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* 컬러 시스템 */
:root {
    --main-color: #8AC5D5;
    --point-color: #FFD166;
    --accent-color: #0891B2;
    --bg-color: #FFFFFF;
    --sub-bg-color: #F0F9FF;
    --text-color: #111111;
}

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

/* 제목 폰트 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    font-weight: 700;
}

/* 헤더: 브라우저 100% 너비, 상단 고정 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* 로고 */
.logo {
    font-size: 32px;
    font-weight: 700;
    color: #555;
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.7;
}

/* 네비게이션 - 중앙 배치 */
.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* 헤더 오른쪽 영역 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

/* 로그인 아이콘 */
.auth-container {
    display: flex;
    align-items: center;
}

.login-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.login-icon:hover {
    background-color: var(--sub-bg-color);
    color: var(--accent-color);
}

.login-icon svg {
    flex-shrink: 0;
}

/* 사용자 정보 및 로그아웃 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-email {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    padding: 6px 14px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background-color: var(--main-color);
    transform: translateY(-1px);
}

/* 네비게이션 */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* 햄버거 메뉴 버튼 - 기본적으로 숨김 (데스크톱) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 메인 비주얼 (Hero): 메인컬러와 포인트컬러 그라데이션 */
.main-visual {
    width: 100%;
    min-height: 500px;
    padding-top: 150px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--point-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-content {
    max-width: 1600px;
    padding: 0 20px;
    text-align: center;
}

.visual-content h2 {
    font-size: 48px;
    margin-bottom: 30px;
    color: var(--accent-color);
    font-weight: 700;
}

.visual-content p {
    font-size: 32px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.visual-content p:last-child {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 30px;
}

/* 메인 컨텐츠: 1600픽셀 가운데 정렬 */
main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* 게시판 페이지 */
.board-page {
    min-height: calc(100vh - 400px);
    padding-top: 100px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: content-box;
}

.board-header {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--sub-bg-color);
    border-radius: 8px;
    margin-bottom: 40px;
}

.board-header h2 {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.board-header p {
    font-size: 18px;
    color: var(--text-color);
}

.board-content {
    padding: 20px;
}

.board-placeholder {
    text-align: center;
    padding: 80px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.board-placeholder p {
    font-size: 20px;
    color: #999;
}

/* 섹션 간격 */
section {
    margin-bottom: 80px;
}

section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--accent-color);
    font-weight: 700;
}

section h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-weight: 600;
}

section h4 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

section p {
    line-height: 1.6;
    margin-bottom: 15px;
}

section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

section li {
    line-height: 1.8;
    margin-bottom: 8px;
}

/* 슬로건 강조 */
.slogan {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 40px;
    padding: 30px;
    background-color: var(--sub-bg-color);
    border-left: 4px solid var(--point-color);
    border-radius: 8px;
}

/* ==================== 섹션별 디자인 ==================== */

/* 소개 섹션 */
#intro {
    background-color: #fff;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

#intro h3 {
    position: relative;
    padding-left: 20px;
}

#intro h3::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--point-color);
}

#intro ul {
    background-color: var(--sub-bg-color);
    padding: 25px 25px 25px 45px;
    border-radius: 8px;
    margin-top: 15px;
}

#intro li {
    position: relative;
    padding-left: 10px;
}

#intro li::before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--accent-color);
    font-weight: bold;
}

/* 커리큘럼 섹션 */
#curriculum {
    background: linear-gradient(135deg, var(--sub-bg-color) 0%, #fff 100%);
    padding: 60px 40px;
    border-radius: 12px;
}

#curriculum h3 {
    background-color: var(--accent-color);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#curriculum ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

#curriculum li {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--point-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

#curriculum li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 기술스택 섹션 */
#tech-stack {
    background-color: var(--text-color);
    color: #fff;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
}

#tech-stack h2 {
    color: var(--point-color);
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* 기술스택을 개별 뱃지로 표시 */
.tech-badge {
    background-color: var(--main-color);
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tech-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 기대효과 섹션 */
#effects {
    background-color: #fff;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

#effects h3 {
    font-size: 28px;
    color: var(--accent-color);
    border-bottom: 3px solid var(--point-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

#effects h4 {
    background-color: var(--sub-bg-color);
    padding: 15px 20px;
    border-radius: 8px;
    color: var(--accent-color);
    margin-top: 30px;
    font-size: 20px;
}

#effects ul {
    margin-left: 0;
    padding-left: 20px;
}

#effects li {
    background-color: #fff;
    padding: 12px 15px;
    margin-bottom: 12px;
    border-left: 3px solid var(--main-color);
    padding-left: 20px;
}

/* 커뮤니티 섹션 */
#community {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--point-color) 100%);
    padding: 80px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#community h2 {
    color: #fff;
    font-size: 40px;
}

#community p {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
}

/* 네모형 버튼 */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: #fff;
}

.btn-point {
    background-color: var(--point-color);
    color: var(--text-color);
    border-color: var(--point-color);
}

.btn-point:hover {
    background-color: transparent;
    color: var(--point-color);
}

/* 상단이동 버튼 */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--main-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 푸터 */
footer {
    background-color: var(--text-color);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--main-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: var(--point-color);
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    line-height: 1.8;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--main-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #444;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

/* ==================== 반응형 디자인 ==================== */

/* 태블릿 (768px 이하) */
@media (max-width: 768px) {
    /* 본문 폰트 크기 조정 */
    body {
        font-size: 16px;
    }

    /* 헤더 */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px;
    }

    .logo {
        font-size: 24px;
    }

    /* 헤더 오른쪽 영역 */
    .header-right {
        gap: 15px;
    }

    /* 로그인 아이콘 모바일 */
    .login-icon {
        padding: 6px 12px;
        font-size: 14px;
    }

    .login-icon span {
        display: none;
    }

    /* 사용자 정보 모바일 */
    .user-info {
        gap: 8px;
    }

    .user-email {
        display: none;
    }

    .logout-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* 햄버거 메뉴 표시 */
    .hamburger {
        display: flex;
    }

    /* 네비게이션 - 햄버거 메뉴 스타일 */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        transform: none;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    .nav-menu.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    nav li {
        border-bottom: 1px solid #eee;
    }

    nav a {
        display: block;
        padding: 15px 10px;
        font-size: 16px;
    }

    /* 메인 비주얼 */
    .main-visual {
        min-height: 400px;
        padding-top: 180px;
        padding-bottom: 60px;
    }

    .visual-content p {
        font-size: 24px;
    }

    .visual-content p:last-child {
        font-size: 18px;
        margin-top: 20px;
    }

    /* 메인 컨텐츠 */
    main {
        padding: 30px 15px;
    }

    section {
        margin-bottom: 50px;
    }

    section h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    section h3 {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    section h4 {
        font-size: 16px;
        margin-top: 15px;
        margin-bottom: 8px;
    }

    /* 슬로건 */
    .slogan {
        font-size: 16px;
        padding: 20px;
        margin-top: 30px;
    }

    /* 버튼 */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* 상단이동 버튼 */
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    /* 섹션별 디자인 - 태블릿 */
    #intro, #curriculum, #tech-stack, #effects, #community {
        padding: 40px 25px;
    }

    #curriculum ul {
        grid-template-columns: 1fr;
    }

    .tech-container {
        gap: 10px;
    }

    .tech-badge {
        font-size: 14px;
        padding: 10px 20px;
    }

    /* 푸터 */
    footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-section {
        text-align: center;
    }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    /* 본문 폰트 크기 조정 */
    body {
        font-size: 14px;
    }

    /* 헤더 */
    .header-container {
        padding: 12px;
    }

    .logo {
        font-size: 20px;
    }

    /* 네비게이션 - 모바일용 조정 */
    .nav-menu {
        width: 80%;
    }

    nav ul {
        gap: 0;
        padding: 15px;
    }

    nav a {
        font-size: 15px;
        padding: 12px 10px;
    }

    /* 메인 비주얼 */
    .main-visual {
        min-height: 350px;
        padding-top: 160px;
        padding-bottom: 40px;
    }

    .visual-content {
        padding: 0 15px;
    }

    .visual-content p {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .visual-content p:last-child {
        font-size: 16px;
        margin-top: 15px;
    }

    /* 메인 컨텐츠 */
    main {
        padding: 20px 12px;
    }

    section {
        margin-bottom: 40px;
    }

    section h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    section h3 {
        font-size: 18px;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    section h4 {
        font-size: 15px;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    section ul {
        margin-left: 15px;
    }

    section li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 6px;
    }

    /* 슬로건 */
    .slogan {
        font-size: 14px;
        padding: 15px;
        margin-top: 20px;
        border-radius: 6px;
    }

    /* 버튼 */
    .btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }

    /* 상단이동 버튼 */
    .scroll-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* 섹션별 디자인 - 모바일 */
    #intro, #curriculum, #tech-stack, #effects, #community {
        padding: 30px 15px;
    }

    #intro ul {
        padding: 20px 20px 20px 35px;
    }

    #curriculum h3 {
        font-size: 18px;
        padding: 12px 20px;
    }

    #curriculum li {
        padding: 15px;
    }

    #tech-stack h2 {
        font-size: 28px;
    }

    .tech-badge {
        font-size: 13px;
        padding: 8px 16px;
    }

    #effects h3 {
        font-size: 22px;
    }

    #effects h4 {
        font-size: 16px;
        padding: 12px 15px;
    }

    #community h2 {
        font-size: 32px;
    }

    #community p {
        font-size: 16px;
    }

    /* 푸터 */
    footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }

    .footer-section h3 {
        font-size: 20px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* ==================== 게시판 스타일 ==================== */

/* 게시판 컨트롤 */
.board-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--sub-bg-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* 게시글 목록 */
.board-list {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

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

.posts-table thead {
    background-color: var(--accent-color);
    color: #fff;
}

.posts-table th {
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.posts-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.posts-table tbody tr:hover {
    background-color: var(--sub-bg-color);
}

.posts-table td {
    padding: 16px;
    text-align: center;
    font-size: 15px;
}

.col-number {
    width: 80px;
}

.col-title {
    width: auto;
    text-align: left !important;
}

.col-author {
    width: 120px;
}

.col-date {
    width: 120px;
}

.col-views {
    width: 80px;
}

.title-cell {
    text-align: left !important;
}

.post-title {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.post-title:hover {
    color: var(--accent-color);
}

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

.page-btn {
    padding: 10px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    min-width: 40px;
}

.page-btn:hover:not(:disabled):not(.active) {
    background-color: var(--sub-bg-color);
    border-color: var(--accent-color);
}

.page-btn.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid var(--sub-bg-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--accent-color);
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 30px;
}

/* 글쓰기 폼 */
.write-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 16px;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid var(--sub-bg-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* 게시글 상세보기 */
.post-detail {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-detail-header {
    border-bottom: 2px solid var(--sub-bg-color);
    padding-bottom: 20px;
}

.post-detail-title {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-detail-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
}

.post-detail-info span {
    display: flex;
    align-items: center;
}

.post-detail-content {
    min-height: 200px;
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-color);
}

.post-detail-content p {
    margin-bottom: 15px;
}

.post-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 게시판 반응형 */
@media (max-width: 768px) {
    .board-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .posts-table {
        font-size: 14px;
    }

    .posts-table th,
    .posts-table td {
        padding: 12px 8px;
    }

    .col-number,
    .col-views {
        display: none;
    }

    .col-author,
    .col-date {
        width: 100px;
        font-size: 13px;
    }

    .post-title {
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

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

    .modal-header h3 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .post-detail-title {
        font-size: 22px;
    }

    .post-detail-info {
        gap: 10px;
        font-size: 13px;
    }

    .form-actions,
    .post-detail-actions {
        flex-direction: column;
    }

    .form-actions .btn,
    .post-detail-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .posts-table th,
    .posts-table td {
        padding: 10px 6px;
    }

    .col-author {
        display: none;
    }

    .col-date {
        width: 80px;
        font-size: 12px;
    }

    .post-title {
        font-size: 13px;
    }

    .pagination {
        gap: 5px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-close {
        font-size: 28px;
    }

    .post-detail-title {
        font-size: 20px;
    }

    .post-detail-content {
        font-size: 15px;
    }
}
