/* 게시판 컨테이너 */
.board-page-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    margin-top: 0; /* 헤더와의 간격 제거 */
    padding-bottom: 10px; /* 푸터 높이만큼 여백 */
    /* border:1px solid red; */
}

/* 광고 섹션 */
.board-slide-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    /* height: 200px; */
    position: relative;
    overflow: hidden;
    margin-top: 0; /* 상단 여백 제거 */
    /* margin: 10px 0; */
}

.board-swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

.board-swiper-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.board-swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.board-swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ccc;
}

.board-swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

.board-slide-ad-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
    border: 1px solid blue;
}

/* 카테고리 네비게이션 */
.board-nav {
    display: flex;
    overflow-x: auto;
    padding: 12px 20px;
    gap: 8px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #eee;
}

.board-nav::-webkit-scrollbar {
    display: none;
}

.board-nav a {
    padding: 8px 16px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    background: #f5f5f5;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.board-nav a.active {
    background: #333;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 게시글 스타일 */
.board-list {
    padding: 15px;
    background: white;
}

.board-row {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    position: relative;
}

.board-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.board-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
}

.board-author {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.board-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.board-stats span {
    display: flex;
    align-items: center;
}

.board-stats i {
    margin-right: 4px;
}

.board-date {
    margin-left: auto;
}

/* 글쓰기 버튼 */
.board-write-btn {
    position: fixed;
    bottom: 70px;
    right: calc((100% - 480px) / 2 + 20px);
    background: #2196F3;
    color: white;
    text-decoration: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(33,150,243,0.3);
    z-index: 98;
    transition: all 0.2s ease;
    padding: 0;
    border: none;
    min-width: 56px;
    min-height: 56px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-write-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.board-write-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33,150,243,0.4);
    background: #1976D2;
}

@media screen and (max-width: 480px) {
    .board-write-btn {
        right: 20px;
    }
}

/* 뱃지 스타일 */
.board-badge-wrap {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
}

.board-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.board-badge-new {
    background-color: #FF4081;
    color: white;
}

.board-badge-hot {
    background-color: #FF9800;
    color: white;
}

/* 관리자 모드 삭제 버튼 */
.board-delete-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.board-delete-btn:hover {
    background: #cc0000;
}

/* 게시글 보기 페이지 스타일 */
.board-view-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.board-back-button {
    font-size: 20px;
    color: #333;
    text-decoration: none;
    padding-right: 15px;
}

.board-header-title {
    font-size: 18px;
    font-weight: 500;
}

.board-post-container {
    padding: 20px;
}

.board-post-category {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.board-post-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.board-post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.board-author-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.board-author-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    margin-right: 10px;
}

.board-author-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.board-post-date {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.board-post-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
    white-space: pre-wrap;
}

.board-post-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.board-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
}

.board-stat-icon {
    font-size: 18px;
    margin-bottom: 6px;
}

.board-stat-count {
    font-size: 12px;
}

/* 댓글 섹션 */
.board-comments-section {
    padding: 20px;
    background: #fff;
}

.board-comment-form {
    margin-bottom: 20px;
}

.board-comment-form textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    resize: none;
    margin-bottom: 10px;
}

.board-comment-form button {
    float: right;
    padding: 8px 16px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.board-comment-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.board-comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.board-comment-author {
    font-weight: 500;
}

.board-comment-date {
    color: #666;
    font-size: 12px;
}

.board-comment-content {
    line-height: 1.4;
    color: #333;
}

/* 글쓰기 페이지 스타일 */
.board-write-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.board-write-form {
    padding: 20px 15px 100px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
}

.board-select,
.board-title-input,
.board-content-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 16px;
    margin-bottom: 20px;
    background: #fff;
    box-sizing: border-box;
}

.board-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 1em;
}

.board-content-input {
    min-height: 200px;
    padding: 15px;
    resize: none;
}

.board-character-count {
    width: 100%;
    text-align: right;
    color: #666;
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
}

.board-button-group {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #ccc;
}

.board-cancel-btn,
.board-submit-btn {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.board-cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.board-submit-btn {
    background: #2196F3;
    color: white;
}

/* 모달 스타일 */
.board-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.board-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 80%;
    max-width: 320px;
    border-radius: 12px;
    padding: 20px;
    z-index: 1001;
}

.board-modal-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.board-modal-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.board-modal-buttons {
    display: flex;
    gap: 10px;
}

.board-modal-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.board-modal-cancel {
    background: #f5f5f5;
    color: #666;
}

.board-modal-confirm {
    background: #2196F3;
    color: white;
} 

