/* =============================================
   Customer Service 페이지 스타일
   ============================================= */

@import url('../variables.css');

.customer-service-section {
    padding: 40px 0 80px;
    min-height: 60vh;
}

.customer-service-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 페이지 헤더 - mypage 스타일 */
.customer-service-section .page-header {
    text-align: center;
    margin-bottom: var(--space-xl, 32px);
}

.customer-service-section .page-title {
    font-family: var(--font-primary, 'Poppins', sans-serif);
    font-size: var(--text-5xl, 36px);
    font-weight: var(--font-regular, 400);
    color: var(--color-text-secondary, #666);
    margin: 0;
    letter-spacing: 2px;
}

/* 게시판 탭 */
.board-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.board-tab {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.board-tab:hover {
    color: #2e7d32;
}

.board-tab.active {
    color: #2e7d32;
    border-bottom-color: #2e7d32;
}

.board-tab i {
    margin-right: 8px;
}

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

.board-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.board-item:last-child {
    border-bottom: none;
}

.board-item:hover {
    background: #f8f9fa;
}

.board-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.board-pin {
    color: #e74c3c;
    font-size: 14px;
}

.board-title {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-item-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: 20px;
}

.board-date {
    font-size: 13px;
    color: #888;
}

.board-views {
    font-size: 13px;
    color: #aaa;
}

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

/* 게시글 없음 */
.board-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.board-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

.board-empty p {
    font-size: 15px;
}

/* 페이징 */
.board-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn,
.page-num {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
}

.page-btn:hover,
.page-num:hover {
    border-color: #2e7d32;
    color: #2e7d32;
}

.page-num.active {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

/* =============================================
   게시글 상세 페이지
   ============================================= */

.board-detail {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.board-detail-header {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.board-type-badge {
    margin-bottom: 12px;
}

.badge-notice,
.badge-faq,
.badge-event,
.badge-account {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-notice {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-faq {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-event {
    background: #fff3e0;
    color: #f57c00;
}

.badge-account {
    background: #fce4ec;
    color: #c2185b;
}

.board-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.4;
}

.board-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #888;
}

.board-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.board-detail-content {
    padding: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    min-height: 200px;
}

.board-detail-footer {
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.back-to-list-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2e7d32;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.back-to-list-btn:hover {
    background: #1b5e20;
    color: #fff;
}

/* =============================================
   Not Found 페이지
   ============================================= */

.not-found-content {
    text-align: center;
    padding: 80px 20px;
}

.not-found-content i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.not-found-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.not-found-content p {
    font-size: 15px;
    color: #888;
    margin-bottom: 30px;
}

/* =============================================
   반응형
   ============================================= */

@media (max-width: 768px) {
    .customer-service-section {
        padding: 30px 0 60px;
    }

    .cs-title {
        font-size: 24px;
    }

    .board-tabs {
        flex-wrap: wrap;
        gap: 0;
    }

    .board-tab {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 13px;
    }

    .board-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 20px;
    }

    .board-item-right {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }

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

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

    .board-detail-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .board-detail-content {
        padding: 20px;
    }

    .board-detail-footer {
        padding: 16px 20px;
    }
}

/* =============================================
   게시글 작성 폼
   ============================================= */

.board-write-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 30px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

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

.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

.guest-info-section,
.member-info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.member-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-name {
    font-size: 15px;
    color: #333;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2e7d32;
}

.checkbox-label .label-text {
    color: #444;
}

.checkbox-label .label-text i {
    margin-right: 4px;
    color: #888;
}

.help-text {
    font-size: 13px;
    color: #888;
    margin-left: 26px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-cancel {
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #f5f5f5;
    color: #333;
}

.btn-submit {
    padding: 12px 24px;
    background: #2e7d32;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #1b5e20;
}

.btn-submit:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* =============================================
   작성자 배지 (A, M, B, G)
   ============================================= */

.author-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.author-badge.author-admin {
    background: #e74c3c;
}

.author-badge.author-member {
    background: #3498db;
}

.author-badge.author-business {
    background: #9b59b6;
}

.author-badge.author-guest {
    background: #95a5a6;
}

/* =============================================
   게시글 상태 표시
   ============================================= */

.post-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.post-status.status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.post-status.status-answered {
    background: #e8f5e9;
    color: #2e7d32;
}

.post-status.status-closed {
    background: #f5f5f5;
    color: #757575;
}

/* 비밀글 아이콘 */
.secret-icon {
    color: #f39c12;
    font-size: 12px;
    margin-right: 4px;
}

/* 목록 글쓰기 버튼 */
.write-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.write-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2e7d32;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.write-btn:hover {
    background: #1b5e20;
    color: #fff;
}

/* =============================================
   반응형 - 글쓰기 폼
   ============================================= */

@media (max-width: 768px) {
    .board-write-form {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        text-align: center;
    }
}

/* =============================================
   비밀글 비밀번호 입력 페이지
   ============================================= */

.secret-password-content {
    text-align: center;
    padding: 60px 30px;
}

.secret-password-content i.fa-lock {
    font-size: 48px;
    color: #f39c12;
    margin-bottom: 20px;
}

.secret-password-content h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 12px;
}

.secret-password-content p {
    font-size: 15px;
    color: #888;
    margin-bottom: 30px;
}

.password-form {
    max-width: 300px;
    margin: 0 auto;
}

.password-form .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}

.password-form .form-group input:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.password-form .form-actions {
    justify-content: center;
    margin-top: 20px;
}

/* 고정 카테고리 표시 */
.fixed-category {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
}

.fixed-category i {
    color: #2e7d32;
}
