/**
 * Cight 맞춤 도구 스타일시트
 */

/* ===== 공통 ===== */
.ct-quiz, .ct-face {
    max-width: 680px;
    margin: 40px auto;
    font-family: var(--font, 'Poppins', 'SUIT Variable', sans-serif);
}

.ct-quiz-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text, #1A1A1A);
    margin-bottom: 8px;
}

.ct-quiz-desc {
    font-size: 15px;
    color: var(--text2, #555);
    margin-bottom: 24px;
}

/* ===== 프로그레스 바 ===== */
.ct-progress {
    height: 6px;
    background: var(--border, #E8ECF0);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ct-progress-bar {
    height: 100%;
    background: var(--blue, #00AEFF);
    border-radius: 3px;
    transition: width .4s ease;
    width: 12.5%;
}

.ct-progress-text {
    font-size: 13px;
    color: var(--text3, #888);
    text-align: right;
}

/* ===== 문항 ===== */
.ct-question {
    animation: ctFadeIn .4s ease;
}

@keyframes ctFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.ct-q-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.ct-q-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text, #1A1A1A);
    margin-bottom: 24px;
    line-height: 1.5;
}

.ct-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ct-option {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text, #1A1A1A);
    background: var(--bg, #fff);
    border: 2px solid var(--border, #E8ECF0);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all .2s;
    font-family: inherit;
}

.ct-option:hover {
    border-color: var(--blue, #00AEFF);
    background: var(--blue-light, #E8F7FF);
}

.ct-option.selected {
    border-color: var(--blue, #00AEFF);
    background: var(--blue, #00AEFF);
    color: #fff;
    transform: scale(.98);
}

/* ===== 결과 ===== */
.ct-result-header {
    text-align: center;
    margin-bottom: 32px;
    animation: ctFadeIn .5s ease;
}

.ct-result-emoji {
    font-size: 64px;
    margin-bottom: 12px;
}

.ct-result-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text, #1A1A1A);
    margin-bottom: 20px;
}

.ct-level {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 16px;
}

.ct-level--good { background: #E8F5E9; color: #2E7D32; }
.ct-level--caution { background: #FFF3E0; color: #E65100; }
.ct-level--warning { background: #FFEBEE; color: #C62828; }

.ct-score-bar {
    height: 12px;
    background: var(--border, #E8ECF0);
    border-radius: 6px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto 8px;
}

.ct-score-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

.ct-score-fill--good { background: #4CAF50; }
.ct-score-fill--caution { background: #FF9800; }
.ct-score-fill--warning { background: #F44336; }

.ct-score-text {
    font-size: 14px;
    color: var(--text2, #555);
}

/* ===== 결과 카드 ===== */
.ct-result-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.ct-result-card {
    padding: 24px;
    background: var(--bg, #fff);
    border: 1px solid var(--border, #E8ECF0);
    border-radius: 16px;
    animation: ctFadeIn .5s ease;
}

.ct-result-card--good {
    background: #E8F5E9;
    border-color: #C8E6C9;
    text-align: center;
    font-size: 16px;
    color: #2E7D32;
}

.ct-rc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ct-rc-icon {
    font-size: 28px;
}

.ct-rc-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #1A1A1A);
}

.ct-rc-desc {
    font-size: 15px;
    color: var(--text2, #555);
    margin-bottom: 12px;
    line-height: 1.6;
}

.ct-rc-advice {
    font-size: 14px;
    color: var(--text, #1A1A1A);
    line-height: 1.7;
    padding: 12px 16px;
    background: var(--blue-light, #E8F7FF);
    border-radius: 10px;
    margin-bottom: 12px;
}

.ct-rc-lens {
    font-size: 14px;
    color: var(--text2, #555);
}

.ct-rc-lens strong {
    color: var(--blue, #00AEFF);
}

/* ===== 공지 ===== */
.ct-result-notice {
    padding: 16px 20px;
    background: var(--copper-bg, #FFF8F0);
    border: 1px solid rgba(142, 100, 71, .15);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text2, #555);
    line-height: 1.6;
}

/* ===== CTA 버튼 ===== */
.ct-result-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all .25s;
    font-family: inherit;
    flex: 1;
    min-width: 160px;
}

.ct-btn--primary {
    background: var(--blue, #00AEFF);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 174, 255, .25);
}

.ct-btn--primary:hover {
    background: var(--blue-dark, #0095DB);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 174, 255, .35);
}

.ct-btn--secondary {
    background: var(--bg, #fff);
    color: var(--blue, #00AEFF);
    border: 2px solid var(--blue, #00AEFF);
}

.ct-btn--secondary:hover {
    background: var(--blue-light, #E8F7FF);
}

.ct-btn--ghost {
    background: transparent;
    color: var(--text3, #888);
    border: 1px solid var(--border, #E8ECF0);
}

.ct-btn--ghost:hover {
    border-color: var(--text3, #888);
    color: var(--text2, #555);
}

/* ===== 얼굴형 추천 ===== */
.ct-face-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.ct-face-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--bg, #fff);
    border: 2px solid var(--border, #E8ECF0);
    border-radius: 16px;
    cursor: pointer;
    transition: all .25s;
    text-align: center;
    font-family: inherit;
}

.ct-face-card:hover {
    border-color: var(--blue, #00AEFF);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.ct-face-card.active {
    border-color: var(--blue, #00AEFF);
    background: var(--blue-light, #E8F7FF);
    box-shadow: 0 4px 16px rgba(0, 174, 255, .15);
}

.ct-face-emoji {
    font-size: 40px;
}

.ct-face-card strong {
    font-size: 16px;
    color: var(--text, #1A1A1A);
}

.ct-face-features {
    font-size: 13px;
    color: var(--text3, #888);
    line-height: 1.4;
}

/* ===== 얼굴형 결과 ===== */
.ct-face-result {
    animation: ctFadeIn .4s ease;
}

.ct-fr-header {
    text-align: center;
    margin-bottom: 24px;
}

.ct-fr-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.ct-fr-header h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text, #1A1A1A);
    margin-bottom: 8px;
}

.ct-fr-features {
    font-size: 14px;
    color: var(--text2, #555);
}

.ct-fr-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #1A1A1A);
    margin-bottom: 12px;
}

.ct-fr-recs {
    margin-bottom: 20px;
}

.ct-fr-rec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: var(--blue-light, #E8F7FF);
    border-radius: 12px;
    margin-bottom: 10px;
}

.ct-fr-rec-item strong {
    font-size: 15px;
    color: var(--blue, #00AEFF);
}

.ct-fr-rec-item span {
    font-size: 14px;
    color: var(--text2, #555);
    line-height: 1.5;
}

.ct-fr-avoid {
    padding: 16px 20px;
    background: #FFF3E0;
    border-radius: 12px;
    margin-bottom: 16px;
}

.ct-fr-avoid p:last-child {
    font-size: 14px;
    color: #E65100;
}

.ct-fr-tip {
    padding: 16px 20px;
    background: var(--bg2, #F5F8FA);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text, #1A1A1A);
    line-height: 1.6;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .ct-face-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ct-result-cta {
        flex-direction: column;
    }

    .ct-btn {
        width: 100%;
    }

    .ct-q-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ct-face-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ct-face-card {
        padding: 16px 12px;
    }
}
