/**
 * 내 문의 사항 페이지 CSS
 */

/* =====================================================
   1. 페이지 레이아웃
   ===================================================== */
.mi-page {
    padding-top: 48px;
    background-color: #f4f6f9;
    min-height: 100vh;
    font-family: 'Noto Sans KR', sans-serif;
}

.mi-page-inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* =====================================================
   2. 페이지 제목 영역
   ===================================================== */
.mi-title-area {
    text-align: center;
    padding: 28px 0 20px;
}

.mi-title-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    background: #EBF4FF;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-title-icon svg {
    opacity: 0.85;
}

.mi-title-area h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.mi-title-sub {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* =====================================================
   3. 필터 탭
   ===================================================== */
.mi-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.mi-filter-btn {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s ease;
}

.mi-filter-btn.active {
    background: #5a86ff;
    color: #fff;
    border-color: #5a86ff;
}

/* =====================================================
   4. 문의 카드
   ===================================================== */
.mi-card {
    background: #fff;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f0f1f3;
}

.mi-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 0;
}

.mi-card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mi-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: -0.2px;
}

.mi-badge-inquiry {
    background: #EBF4FF;
    color: #5a86ff;
}

.mi-badge-suggestion {
    background: #ECFDF5;
    color: #059669;
}

.mi-badge-waiting {
    background: #FFF7ED;
    color: #EA580C;
}

.mi-badge-replied {
    background: #F0F5FF;
    color: #5a86ff;
}

.mi-card-date {
    font-size: 11px;
    color: #b0b7c3;
    flex-shrink: 0;
}

.mi-card-body {
    padding: 10px 16px 14px;
}

.mi-card-message {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mi-card.expanded .mi-card-message {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.mi-card-toggle {
    display: none;
    padding: 0 16px 12px;
}

.mi-card-toggle button {
    background: none;
    border: none;
    color: #5a86ff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
}

/* =====================================================
   5. 답변 영역
   ===================================================== */
.mi-reply {
    background: #F8FAFF;
    border-top: 1px solid #eef1f6;
    padding: 14px 16px;
}

.mi-reply-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.mi-reply-label svg {
    flex-shrink: 0;
}

.mi-reply-label span {
    font-size: 13px;
    font-weight: 600;
    color: #5a86ff;
}

.mi-reply-label-date {
    font-size: 11px;
    font-weight: 400 !important;
    color: #b0b7c3 !important;
    margin-left: auto;
}

.mi-reply-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.65;
    word-break: break-word;
}

/* =====================================================
   6. 로딩 / 빈 상태
   ===================================================== */
.mi-loading {
    text-align: center;
    padding: 48px 0;
    color: #9ca3af;
    font-size: 14px;
}

.mi-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e5e7eb;
    border-top-color: #5a86ff;
    border-radius: 50%;
    animation: mi-spin 0.7s linear infinite;
    margin: 0 auto 12px;
}

@keyframes mi-spin {
    to { transform: rotate(360deg); }
}

.mi-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.mi-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-empty-text {
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

.mi-empty-sub {
    font-size: 13px;
    color: #9ca3af;
}

/* =====================================================
   7. 무한스크롤 하단 로딩
   ===================================================== */
.mi-load-more {
    text-align: center;
    padding: 20px 0;
}

.mi-load-more-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #5a86ff;
    border-radius: 50%;
    animation: mi-spin 0.7s linear infinite;
    margin: 0 auto;
}

.mi-end {
    text-align: center;
    padding: 16px 0 8px;
    font-size: 12px;
    color: #b0b7c3;
}

/* =====================================================
   8. 로그인 안내
   ===================================================== */
.mi-login-notice {
    text-align: center;
    padding: 60px 20px;
}

.mi-login-notice p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 16px;
}

.mi-login-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #5a86ff;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
