/* ============================================================
 * support.css — 고객센터(support.html) 전용 스타일
 *  - TASK-405: 기존 인라인 <style>을 이 파일로 분리(리스킨, 동작 무변경)
 *  - 모든 색/여백은 tokens.css / style.css 변수 사용(C-1). style.css 뒤에 로드되어 변수 참조 가능
 *  - ⚠️ 이미지 경로 주의: 이 파일은 css/pages/ 안에 있으므로 루트 images/는 ../../images/ 로 참조
 * ============================================================ */

.support-hero {
    position: relative;
    overflow: hidden;
    background: var(--stiz-black);
    color: var(--stiz-white);
}

.support-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* 인라인에서 이관: css/pages/ 기준 루트 이미지 경로로 보정(../../) */
    background:
        linear-gradient(180deg, rgba(17, 17, 17, 0.28), rgba(17, 17, 17, 0.95)),
        url("../../images/hero_bg.jpg") center / cover;
    /* webp 우선(용량 -54%): image-set 지원 브라우저만 적용, 미지원 시 위 jpg 유지 */
    background-image:
        linear-gradient(180deg, rgba(17, 17, 17, 0.28), rgba(17, 17, 17, 0.95)),
        image-set(url("../../images/hero_bg.webp") type("image/webp"), url("../../images/hero_bg.jpg") type("image/jpeg"));
    opacity: 0.54;
}

.support-action {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--stiz-white);
    padding: 22px;
    color: var(--stiz-black);
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.support-action:hover {
    border-color: var(--stiz-black);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.support-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--stiz-black);
}

.support-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--stiz-white);
    box-shadow: var(--shadow-soft);
}

.support-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-top: 1px solid var(--border);
    padding: 18px 20px;
    color: var(--stiz-black);
    text-decoration: none;
    transition: background-color 180ms ease;
}

.support-row:first-child {
    border-top: 0;
}

.support-row:hover {
    background: var(--surface-muted);
}

.support-faq {
    border-top: 1px solid var(--border);
    padding: 22px 0;
}

.support-faq:first-child {
    border-top: 0;
    padding-top: 0;
}

.support-side {
    position: sticky;
    top: 96px;
}

.support-side-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--stiz-white);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 640px) {
    .support-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .support-row .material-symbols-outlined:last-child {
        display: none;
    }
}

/* ===== S2: 통합검색 히어로 ===== */
/* 이유: 히어로 다크 배경 위에 흰 알약형 검색창 하나로 FAQ를 필터링한다. */
.support-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.support-search-input {
    width: 100%;
    min-height: 56px;
    /* 좌: search 아이콘 자리(52px), 우: 검색 버튼 자리(118px) 확보 */
    padding: 14px 118px 14px 52px;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    background: var(--stiz-white);
    color: var(--stiz-black);
    font-size: 15px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.support-search-input:focus {
    border-color: var(--stiz-blue);
    /* 포커스 링: 하드코딩 대신 blue 변수를 투명 혼합(color-mix)해 C-1 준수 */
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--stiz-blue) 26%, transparent);
}

.support-search-ico {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.support-search-btn {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--stiz-blue);
    color: var(--stiz-white);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 180ms ease;
}

.support-search-btn:hover {
    background: var(--stiz-blue-700);
}

/* 인기검색어 칩: 다크 히어로 위이므로 rgba(255,255,255,..)만 예외 허용(설계 §주의1) */
.support-pop-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: var(--stiz-white);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.support-pop-chip:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55);
}

/* ===== S2: FAQ 칩 + 아코디언 ===== */
.faq-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--stiz-white);
    color: var(--stiz-black);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.faq-chip:hover {
    border-color: var(--stiz-black);
}

/* 선택된 칩만 검정 반전(설계: 파랑/검정 중 사이트 톤인 검정 채택) */
.faq-chip.is-active {
    background: var(--stiz-black);
    border-color: var(--stiz-black);
    color: var(--stiz-white);
}

.faq-item {
    border-top: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 0;
}

.faq-q {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 20px 4px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--stiz-black);
}

.faq-q:hover {
    color: var(--stiz-blue-700);
}

/* 카테고리 캡슐: 연한 파랑 틴트(--surface-blue) + 파랑 글자 */
.faq-tag {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-blue);
    color: var(--stiz-blue-700);
    font-size: 11px;
    font-weight: 800;
}

.faq-q-text {
    flex: 1;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

/* expand_more 아이콘: 열림 시 180도 회전(display 토글 아님 → E-8 회피) */
.faq-q-ico {
    flex-shrink: 0;
    color: var(--gray-300);
    transition: transform 180ms ease, color 180ms ease;
}

.faq-item.is-open .faq-q-ico {
    transform: rotate(180deg);
    color: var(--stiz-black);
}

.faq-a {
    padding: 0 4px 22px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--gray-600);
}

.faq-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 20px;
}

/* ===== S2: 공지 인라인 피드 ===== */
.support-notice-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding: 15px 20px;
    color: var(--stiz-black);
    text-decoration: none;
    transition: background-color 180ms ease;
}

.support-notice-row:first-child {
    border-top: 0;
}

.support-notice-row:hover {
    background: var(--surface-muted);
}

/* tone 태그: dark/blue/gray 3종 모두 CSS 변수만(설계 §공지 규칙) */
.support-notice-tag {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.support-notice-tag.tone-dark {
    background: var(--stiz-black);
    color: var(--stiz-white);
}

.support-notice-tag.tone-blue {
    background: color-mix(in srgb, var(--stiz-blue) 12%, var(--stiz-white));
    color: var(--stiz-blue-700);
}

.support-notice-tag.tone-gray {
    background: var(--surface-muted);
    color: var(--stiz-black);
    border: 1px solid var(--border);
}

/* NEW 배지: 시안 빨강을 파랑으로 재해석(설계 §주의1) */
.support-notice-new {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--stiz-blue);
    color: var(--stiz-white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
