/* =========================
   customer.css — 이용안내 섹션
   (notice, qna, faq 공통 스타일)
========================= */

/* ── 레이아웃 ── */
.customer-center {
    background: var(--bg-gray);
    padding: 60px 0;
    min-height: 600px;
}

.customer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

/* ── 사이드바 ── */
.customer-sidebar {
    flex: 0 0 280px;
}

.sidebar-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-primary);
}

.sidebar-menu {
    list-style: none;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.sidebar-menu li a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

.sidebar-menu li:last-child a {
    border-bottom: none;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: var(--primary-color);
    color: #F5F1EC;
    padding-left: 32px;
}

/* ── 본문 영역 ── */
.customer-content {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── 공통 테이블 ── */
.customer-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.customer-table th {
    background: #f8f9fa;
    padding: 15px;
    font-weight: 600;
    border-top: 2px solid var(--primary-color);
    border-bottom: 1px solid #ddd;
    color: var(--text-primary);
}

.customer-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.customer-table td.title {
    text-align: left;
}

.customer-table td.title a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s;
}

.customer-table td.title a:hover {
    color: var(--primary-color);
}

.ta-c {
    text-align: center;
}

.ta-r {
    text-align: right;
}

.mg-t20 {
    margin-top: 20px;
}

.no-data {
    padding: 50px 0;
    color: #999;
    font-size: 0.95rem;
}

/* ── 뱃지 ── */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(45, 106, 79, 0.10);
    color: var(--primary-color);
}

.badge-pending {
    background: rgba(212, 184, 150, 0.25);
    color: #7B5A2A;
}

/* ── 액션 버튼 ── */
.btn-action {
    display: inline-block;
    padding: 10px 28px;
    background: var(--primary-color);
    color: #F5F1EC;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-action:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ── 페이지네이션 ── */
.customer-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.customer-pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #666;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.customer-pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.customer-pagination a.active {
    background: var(--primary-color);
    color: #F5F1EC;
    border-color: var(--primary-color);
}

/* ── FAQ ── */
.faq-list {
    margin-top: 20px;
    border-top: 2px solid var(--primary-color);
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    font-size: 1.05rem;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #fcfcfc;
}

.q-icon {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Noto Serif KR', serif;
}

.faq-question .arrow {
    margin-left: auto;
    font-size: 0.8rem;
    color: #aaa;
    transition: transform 0.3s;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #f9f9f9;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.a-content {
    padding: 25px 20px 25px 55px;
    position: relative;
    line-height: 1.8;
    color: var(--text-secondary);
}

.a-icon {
    position: absolute;
    left: 20px;
    top: 25px;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Noto Serif KR', serif;
}

/* ── 상세 보기 (공지사항, QnA 공통) ── */
.view-header {
    border-top: 2px solid var(--accent-gold);
    padding: 25px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.view-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-family: 'Noto Serif KR', serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.view-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-content {
    line-height: 1.8;
    padding: 20px 0 40px;
    border-bottom: 1px solid #eee;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.view-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contents-text {
    word-break: break-all;
}

/* ── QnA 답변 영역 ── */
.reply-section {
    margin-top: 40px;
    background: var(--bg-cream);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-gold);
}

.reply-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.reply-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.view-actions {
    margin-top: 40px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-list {
    display: inline-block;
    padding: 12px 35px;
    background: #fff;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.btn-list:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 144, 44, 0.15);
}

/* ── QnA 글쓰기 폼 ── */
.qna-form .form-group {
    margin-bottom: 20px;
}

.qna-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.qna-form input[type="text"],
.qna-form textarea,
.qna-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.qna-form input[type="text"]:focus,
.qna-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.10);
}

.qna-form textarea {
    height: 250px;
    resize: vertical;
}

.qna-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-cancel {
    display: inline-block;
    padding: 10px 28px;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
    .customer-container {
        flex-direction: column;
    }

    .customer-sidebar {
        flex: none;
        width: 100%;
    }

    .customer-content {
        padding: 24px 16px;
    }

    .customer-table th,
    .customer-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}