.board-section {
    padding: 120px 20px 80px;
    min-height: calc(100vh - 300px);
}

.board-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.board-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 40px;
    animation: softGlow 2s ease-in-out infinite;
    font-weight: 500;
}

@keyframes softGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
        opacity: 0.9;
    }
    50% {
        text-shadow: 0 0 20px rgba(245, 158, 11, 0.6), 0 0 30px rgba(245, 158, 11, 0.4);
        opacity: 1;
    }
}

.board-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.board-table thead {
    background: var(--gray-900);
    color: white;
}

.board-table th,
.board-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}

.board-table th {
    font-weight: 700;
}

.board-table .title-col {
    text-align: left;
}

.board-table .title-col a {
    color: var(--gray-900);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.board-table .title-col a:hover {
    color: var(--primary);
}

.board-table tbody tr:hover {
    background: var(--gray-50);
}

.no-posts {
    padding: 60px 20px !important;
    color: var(--gray-600);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn,
.page-num {
    padding: 8px 15px;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.page-btn:hover,
.page-num:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-num.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 700;
}

.write-form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.write-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.write-form input[type="text"],
.write-form input[type="url"],
.write-form input[type="password"],
.write-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

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

.write-form textarea {
    resize: vertical;
    font-family: inherit;
}

.write-form small {
    display: block;
    margin-top: 5px;
    color: var(--gray-600);
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.password-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.password-form h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.password-form p {
    color: var(--gray-600);
    margin-bottom: 30px;
}

.password-form input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
}

.password-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.post-view {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.post-header {
    background: var(--gray-50);
    padding: 30px;
    border-bottom: 2px solid var(--gray-200);
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.post-info {
    display: flex;
    gap: 20px;
    color: var(--gray-600);
    font-size: 14px;
}

.post-content {
    padding: 40px 30px;
    line-height: 1.8;
    color: var(--gray-900);
}

.post-links,
.post-attachment {
    padding: 20px 30px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.post-links h4,
.post-attachment h4 {
    margin-bottom: 10px;
    font-weight: 700;
}

.post-links a,
.post-attachment a {
    color: var(--primary);
    text-decoration: none;
}

.post-links a:hover,
.post-attachment a:hover {
    text-decoration: underline;
}

.post-actions {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

/* 태블릿 (768px ~ 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .board-section {
        padding: 100px 25px 70px;
    }
    
    .board-title {
        font-size: 32px;
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .write-form,
    .password-form,
    .post-view {
        padding: 35px;
    }
}

/* 모바일 가로/소형 태블릿 (481px ~ 768px) */
@media (max-width: 768px) {
    .board-section {
        padding: 90px 15px 60px;
    }
    
    .board-title {
        font-size: 26px;
    }
    
    .board-subtitle {
        font-size: 14px;
    }
    
    .board-actions {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    /* 테이블 가로 스크롤 */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .board-table {
        min-width: 600px;
    }
    
    .board-table th,
    .board-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    /* 모바일에서 작성자, 조회수 숨기기 */
    .board-table th:nth-child(3),
    .board-table td:nth-child(3),
    .board-table th:nth-child(5),
    .board-table td:nth-child(5) {
        display: none;
    }
    
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        display: table-cell;
    }
    
    .write-form,
    .password-form,
    .post-view {
        padding: 25px 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-content {
        padding: 30px 20px;
        font-size: 15px;
    }
    
    .pagination {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .page-btn,
    .page-num {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .stats-section {
        padding: 20px;
    }
    
    .stats-table {
        font-size: 13px;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 10px 8px;
    }
}

/* 모바일 세로 (~ 480px) */
@media (max-width: 480px) {
    .board-section {
        padding: 80px 10px 50px;
    }
    
    .board-title {
        font-size: 22px;
    }
    
    .board-subtitle {
        font-size: 13px;
    }
    
    .btn {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .board-table {
        min-width: 500px;
        font-size: 13px;
    }
    
    .board-table th,
    .board-table td {
        padding: 10px 5px;
    }
    
    .write-form,
    .password-form,
    .post-view {
        padding: 20px 15px;
    }
    
    .write-form .form-group {
        margin-bottom: 20px;
    }
    
    .write-form input,
    .write-form textarea {
        font-size: 14px;
        padding: 10px;
    }
    
    .password-form {
        padding: 40px 20px;
    }
    
    .password-form h2 {
        font-size: 22px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .post-content {
        padding: 20px 15px;
        font-size: 14px;
    }
    
    .post-header {
        padding: 20px 15px;
    }
    
    .stats-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stats-section {
        padding: 15px;
    }
    
    .stats-table {
        font-size: 12px;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 8px 4px;
    }
    
    /* 통계 테이블 일부 컬럼 숨기기 */
    .stats-table th:nth-child(2),
    .stats-table td:nth-child(2) {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .comment-item {
        padding: 15px;
    }
    
    .telegram-help {
        padding: 15px;
    }
    
    .telegram-help ol {
        font-size: 14px;
    }
}

/* 삭제 버튼 스타일 */
.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.delete-info {
    background: var(--gray-50);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.delete-info p {
    margin: 8px 0;
    color: var(--gray-700);
}

/* 관리자 페이지 스타일 */
.admin-table th:last-child,
.admin-table td:last-child {
    text-align: center;
}

.admin-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin: 0 3px;
    transition: all 0.3s;
}

.edit-btn {
    background: #4299e1;
    color: white;
}

.edit-btn:hover {
    background: #3182ce;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

/* OTP 인증 스타일 */
.otp-info {
    background: #e6f7ff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #4299e1;
}

.otp-info p {
    margin: 8px 0;
    color: #2d3748;
}

.otp-help {
    margin-top: 20px;
    text-align: center;
}

.otp-help a {
    color: #4299e1;
    text-decoration: none;
    font-size: 14px;
}

.otp-help a:hover {
    text-decoration: underline;
}

/* 방문자 통계 스타일 */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border: 2px solid var(--gray-100);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.1);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.stat-card small {
    color: var(--gray-500);
    font-size: 12px;
}

.stats-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--gray-900);
}

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

.stats-table thead {
    background: var(--gray-50);
}

.stats-table th,
.stats-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.stats-table th {
    font-weight: 600;
    color: var(--gray-700);
}

.stats-table tbody tr:hover {
    background: var(--gray-50);
}

.stats-note {
    background: #fffbeb;
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.stats-note p {
    margin: 5px 0;
    color: var(--gray-700);
    font-size: 14px;
}

/* 답변 스타일 */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--gray-200);
}

.comments-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.no-comments {
    color: var(--gray-500);
    text-align: center;
    padding: 30px;
    background: var(--gray-50);
    border-radius: 8px;
}

.comment-item {
    background: #fffbeb;
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.comment-date {
    color: var(--gray-600);
    font-size: 13px;
}

.comment-content {
    color: var(--gray-900);
    line-height: 1.6;
}

.comment-form {
    margin-top: 20px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 8px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* 텔레그램 봇 도움말 */
.telegram-help {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
}

.telegram-help h4 {
    margin-bottom: 10px;
    color: var(--gray-900);
}

.telegram-help ol {
    margin-left: 20px;
    line-height: 1.8;
}

.telegram-help code {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

#telegram-result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
}

