/**
 * Youth Subsidy Eligibility Checker Styles
 * 청년 정부지원금 자격 판정 도구 전용 스타일
 *
 * @package Zipper
 */

/* ===== 2컬럼 레이아웃 (데스크탑) ===== */
.yse-main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}

.yse-input-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.yse-result-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== 공통 섹션 ===== */
.yse-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease;
}

.yse-section:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

.yse-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yse-section-title i {
    color: #d4af37;
    font-size: 15px;
}

/* ===== 입력 그룹 ===== */
.yse-input-group {
    margin-bottom: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.yse-input-group:last-child {
    margin-bottom: 0;
}

.yse-input-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #5f5a56;
    margin-bottom: 6px;
}

.yse-input-label .yse-label-hint {
    font-weight: 400;
    color: #9e9a96;
    margin-left: 4px;
}

.yse-label-hint {
    font-weight: 400;
    color: #9e9a96;
    font-size: 12px;
}

.yse-amount-input,
.yse-number-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.yse-amount-input:hover,
.yse-number-input:hover {
    border-color: #d4c67a;
}

.yse-amount-input:focus,
.yse-number-input:focus {
    outline: none;
    border-color: #d4af37;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.yse-amount-input::placeholder,
.yse-number-input::placeholder {
    font-weight: 400;
    color: #c4c0bc;
}

.yse-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235f5a56' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.yse-select:hover {
    border-color: #d4c67a;
}

.yse-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.yse-korean-amount {
    font-size: 11px;
    color: #d4af37;
    margin-top: 4px;
    text-align: right;
    min-height: 16px;
}

.yse-hint {
    font-size: 11px;
    color: #9e9a96;
    margin-top: 4px;
}

.yse-warning-text {
    color: #e74c3c;
}

/* ===== 라디오 버튼 ===== */
.yse-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yse-radio-horizontal {
    flex-direction: row;
}

.yse-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #5f5a56;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    cursor: pointer;
    transition: all 0.2s;
}

.yse-radio-horizontal .yse-radio-label {
    flex: 1;
    justify-content: center;
}

.yse-radio-label:hover {
    border-color: #d4af37;
}

.yse-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #d4af37;
    flex-shrink: 0;
}

.yse-radio-label.active {
    border-color: #d4af37;
    background: #fdfbf5;
    color: #2d2a26;
    font-weight: 500;
}

.yse-radio-desc {
    font-size: 11px;
    color: #9e9a96;
    margin-left: auto;
}

/* ===== 체크박스 ===== */
.yse-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.yse-checkbox-row:last-child {
    margin-bottom: 0;
}

.yse-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #5f5a56;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    cursor: pointer;
    transition: all 0.2s;
}

.yse-checkbox-label:hover {
    border-color: #d4af37;
}

.yse-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #d4af37;
    flex-shrink: 0;
}

.yse-checkbox-label.active {
    border-color: #d4af37;
    background: #fdfbf5;
    color: #2d2a26;
    font-weight: 500;
}

/* ===== 버튼 ===== */
.yse-btn-group {
    display: flex;
    gap: 8px;
}

.yse-calculate-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #d4af37, #c9a030);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

.yse-calculate-btn:hover {
    background: linear-gradient(135deg, #c9a030, #b8922a);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.yse-reset-btn {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #5f5a56;
    background: #f5f3f0;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.yse-reset-btn:hover {
    background: #eae7e3;
}

/* ===== 결과 - 대기 영역 ===== */
.yse-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #9e9a96;
}

.yse-waiting i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    color: #d4af37;
    opacity: 0.4;
}

.yse-waiting p {
    font-size: 13px;
    margin: 0;
}

/* ===== 결과 - 종합 판정 배지 ===== */
.yse-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.yse-qual-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.yse-qual-badge.yse-qualified {
    background: linear-gradient(135deg, #f0faf0 0%, #e8f5e9 100%);
    border: 2px solid #4caf50;
}

.yse-qual-badge.yse-partial {
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
    border: 2px solid #ff9800;
}

.yse-qual-badge.yse-disqualified {
    background: linear-gradient(135deg, #fef5f5 0%, #ffebee 100%);
    border: 2px solid #e74c3c;
}

.yse-badge-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.yse-qualified .yse-badge-icon { color: #4caf50; }
.yse-partial .yse-badge-icon { color: #ff9800; }
.yse-disqualified .yse-badge-icon { color: #e74c3c; }

.yse-badge-text {
    font-size: 20px;
    font-weight: 700;
}

.yse-qualified .yse-badge-text { color: #2e7d32; }
.yse-partial .yse-badge-text { color: #e65100; }
.yse-disqualified .yse-badge-text { color: #c62828; }

.yse-qual-desc {
    font-size: 13px;
    color: #5f5a56;
    text-align: center;
}

.yse-eligible-count {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e4dc;
}

.yse-count-item {
    text-align: center;
}

.yse-count-number {
    font-size: 24px;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.yse-count-number.yse-count-pass { color: #4caf50; }
.yse-count-number.yse-count-fail { color: #e74c3c; }

.yse-count-label {
    font-size: 11px;
    color: #7a756d;
}

/* ===== 프로그램별 판정 카드 ===== */
.yse-programs-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.yse-programs-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yse-programs-title i { color: #d4af37; }

.yse-program-card {
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.yse-program-card:last-child {
    margin-bottom: 0;
}

.yse-program-card:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.08);
}

.yse-program-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    background: #faf9f7;
    transition: background 0.2s;
}

.yse-program-header:hover {
    background: #f5f3f0;
}

.yse-program-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.yse-program-icon.yse-icon-pass { color: #4caf50; }
.yse-program-icon.yse-icon-fail { color: #e74c3c; }

.yse-program-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #2d2a26;
}

.yse-program-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 4px;
}

.yse-program-status.yse-status-pass {
    background: #e8f5e9;
    color: #2e7d32;
}

.yse-program-status.yse-status-fail {
    background: #ffebee;
    color: #c62828;
}

.yse-program-toggle {
    font-size: 14px;
    color: #9e9a96;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.yse-program-card.yse-expanded .yse-program-toggle {
    transform: rotate(180deg);
}

.yse-program-detail {
    display: none;
    padding: 0 16px 14px;
    border-top: 1px solid #f0ede8;
}

.yse-program-card.yse-expanded .yse-program-detail {
    display: block;
}

.yse-program-info {
    font-size: 12px;
    color: #7a756d;
    margin: 10px 0 8px;
    line-height: 1.5;
}

.yse-program-benefit {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 10px;
}

.yse-program-benefit i {
    font-size: 14px;
}

.yse-req-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yse-req-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #5f5a56;
    padding: 6px 8px;
    background: #faf9f7;
    border-radius: 6px;
}

.yse-req-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.yse-req-icon.yse-req-pass { color: #4caf50; }
.yse-req-icon.yse-req-fail { color: #e74c3c; }
.yse-req-icon.yse-req-unknown { color: #9e9a96; }

.yse-req-text {
    flex: 1;
}

.yse-req-text strong {
    color: #2d2a26;
}

/* ===== 맞춤 안내 팁 ===== */
.yse-tips-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.yse-tips-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yse-tips-title i { color: #d4af37; }

.yse-tips-list { display: flex; flex-direction: column; gap: 8px; }

.yse-tip-card {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #faf9f7;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #5f5a56;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yse-tip-card:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(45, 42, 38, 0.08); }
.yse-tip-icon { font-size: 16px; color: #d4af37; flex-shrink: 0; margin-top: 1px; }
.yse-tip-text strong { color: #2d2a26; }

/* ===== 신청 안내 링크 ===== */
.yse-apply-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.yse-apply-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yse-apply-title i { color: #d4af37; }

.yse-apply-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yse-apply-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    font-size: 12px;
    color: #5f5a56;
    transition: all 0.2s;
}

.yse-apply-item:hover {
    border-color: #d4af37;
    background: #fdfbf5;
}

.yse-apply-item i {
    font-size: 16px;
    color: #d4af37;
    flex-shrink: 0;
}

.yse-apply-name {
    flex: 1;
    font-weight: 600;
    color: #2d2a26;
}

.yse-apply-where {
    font-size: 11px;
    color: #9e9a96;
}

/* ===== 면책 조항 ===== */
.yse-disclaimer {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.5;
}

.yse-disclaimer i { color: #d4af37; flex-shrink: 0; margin-top: 2px; }

/* ===== 유틸리티 ===== */
.yse-hidden { display: none !important; }

/* ===== 모션 감소 접근성 ===== */
@media (prefers-reduced-motion: reduce) {
    .yse-section, .yse-amount-input, .yse-number-input, .yse-select,
    .yse-calculate-btn, .yse-tip-card, .yse-program-card,
    .yse-program-toggle { transition: none !important; }
    .yse-section:hover, .yse-tip-card:hover,
    .yse-calculate-btn:hover { transform: none !important; }
}

/* ===== 반응형 ===== */
@media (max-width: 900px) {
    .yse-main-layout { grid-template-columns: 1fr; }
    .yse-input-col { position: static; width: 100%; }
    .yse-result-col { width: 100%; }
    .yse-input-group input:not([type="radio"]):not([type="checkbox"]),
    .yse-input-group select { width: 100% !important; max-width: 100% !important; }
    .yse-badge-text { font-size: 17px; }
    .yse-eligible-count { gap: 16px; }
}

@media (max-width: 480px) {
    .yse-section { padding: 12px; }
    .yse-result-summary { padding: 16px; }
    .yse-qual-badge { gap: 8px; padding: 12px; }
    .yse-badge-text { font-size: 15px; }
    .yse-checkbox-row { flex-direction: column; }
    .yse-program-header { padding: 12px; }
    .yse-program-name { font-size: 12px; }
    .yse-count-number { font-size: 20px; }
}
