/* 구조화 데이터 생성기 스타일 - mockup-generator 디자인 언어 차용 (violet/pink 테마) */
.schema-tool {
    --tool-primary: #7c3aed;
    --tool-bg: #f5f3ff;
    --tool-gradient: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
}

/* 히어로 */
.schema-hero {
    background: var(--tool-gradient);
    border-radius: 16px;
    padding: 36px 32px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}
.schema-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.schema-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}
.schema-hero h1 {
    font-size: 28px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    margin: 10px 0 6px;
}
.schema-hero p {
    opacity: 0.85;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* 에디터 카드 */
.editor-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
}
.editor-title {
    font-weight: 700;
    font-size: 14px;
    color: #343a40;
}
.editor-title i {
    color: var(--tool-primary);
}
.editor-body {
    padding: 18px;
}

/* 액션 버튼 */
.btn-action {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
.btn-action:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}
.btn-action-sm {
    padding: 5px 12px;
    font-size: 12.5px;
    border-radius: 8px;
}
.btn-action-primary {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
}
.btn-action-primary:hover {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}

/* 스키마 유형 선택 카드 */
.schema-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
    font-size: 0.85rem;
    font-weight: 600;
}
.schema-type-card i {
    font-size: 1.5rem;
    color: #868e96;
    transition: color 0.2s ease;
}
.schema-type-card:hover {
    border-color: var(--tool-primary);
    background: var(--tool-bg);
    transform: translateY(-2px);
}
.schema-type-card:hover i {
    color: var(--tool-primary);
}
.schema-type-card.active {
    border-color: var(--tool-primary);
    background: var(--tool-bg);
    color: var(--tool-primary);
}
.schema-type-card.active i {
    color: var(--tool-primary);
}

/* 동적 폼 항목 그룹 */
.schema-field-group {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: #fafbfc;
    position: relative;
}
.schema-field-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.schema-field-group-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #343a40;
}
.schema-field-group .btn-remove {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.schema-field-group .btn-remove:hover {
    opacity: 1;
}

/* 폼 입력 포커스 (테마 색상) */
.schema-tool .form-control:focus,
.schema-tool .form-select:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

/* 필수/선택 배지 */
.field-badge-required {
    font-size: 0.65rem;
    padding: 0.15em 0.45em;
    background-color: rgba(219, 39, 119, 0.1);
    color: #db2777;
    border-radius: 0.25rem;
    font-weight: 600;
    margin-left: 0.35rem;
    vertical-align: middle;
}
.field-badge-optional {
    font-size: 0.65rem;
    padding: 0.15em 0.45em;
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border-radius: 0.25rem;
    font-weight: 600;
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* 항목 추가 버튼 */
.btn-add-item {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 0.75rem;
    width: 100%;
    background: transparent;
    color: #868e96;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.btn-add-item:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}

/* JSON 출력 영역 (catppuccin 다크 + 신택스 하이라이팅) */
.schema-output-wrap {
    position: relative;
}
.schema-output {
    background-color: #1e1e2e;
    color: #cdd6f4;
    padding: 1.25rem;
    font-size: 0.82rem;
    line-height: 1.6;
    overflow-x: auto;
    max-height: 500px;
    border: none;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
.schema-output .json-key { color: #89b4fa; }
.schema-output .json-string { color: #a6e3a1; }
.schema-output .json-number { color: #fab387; }
.schema-output .json-boolean { color: #cba6f7; }
.schema-output .json-null { color: #f38ba8; font-style: italic; }
.schema-output .json-bracket { color: #cdd6f4; }

/* 검색 결과 미리보기 */
.schema-preview {
    background-color: #fff;
    border: 1px solid #e9ecef;
    font-family: Arial, sans-serif;
}
.schema-preview-url {
    font-size: 0.75rem;
    color: #202124;
    margin-bottom: 0.15rem;
}
.schema-preview-url .preview-domain { color: #202124; }
.schema-preview-url .preview-path { color: #5f6368; }
.schema-preview-title {
    font-size: 1.15rem;
    color: #1a0dab;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    cursor: pointer;
}
.schema-preview-title:hover { text-decoration: underline; }
.schema-preview-description {
    font-size: 0.82rem;
    color: #4d5156;
    line-height: 1.5;
}
.schema-preview-meta {
    font-size: 0.75rem;
    color: #70757a;
    margin-bottom: 0.25rem;
}

/* FAQ 미리보기 */
.schema-preview-faq {
    margin-top: 0.5rem;
    border-top: 1px solid #e8eaed;
    padding-top: 0.5rem;
}
.schema-preview-faq-item { padding: 0.35rem 0; }
.schema-preview-faq-q {
    font-size: 0.85rem;
    color: #1a0dab;
    cursor: pointer;
}
.schema-preview-faq-q:hover { text-decoration: underline; }

/* 제품 미리보기 */
.schema-preview-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}
.schema-preview-stars {
    color: #fbbc04;
    font-size: 0.8rem;
    letter-spacing: -1px;
}
.schema-preview-rating-text {
    font-size: 0.75rem;
    color: #70757a;
}
.schema-preview-price {
    font-size: 0.85rem;
    color: #202124;
    font-weight: 600;
    margin-top: 0.15rem;
}

/* HowTo 미리보기 */
.schema-preview-steps {
    margin-top: 0.5rem;
    border-top: 1px solid #e8eaed;
    padding-top: 0.5rem;
}
.schema-preview-step {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.2rem 0;
    font-size: 0.82rem;
    color: #4d5156;
}
.schema-preview-step-num {
    font-weight: 700;
    color: #1a0dab;
    flex-shrink: 0;
}

/* 서포트 카드 */
.support-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.support-card .card-hd {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #f1f3f5;
}
.support-card .card-bd {
    padding: 18px;
}
.support-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    margin: 18px 0 10px;
}

/* 아코디언 */
.schema-tool .accordion-button:not(.collapsed) {
    background-color: var(--tool-bg);
    color: var(--tool-primary);
    box-shadow: none;
}
.schema-tool .accordion-button:focus {
    box-shadow: none;
}

/* 반응형 */
@media (max-width: 768px) {
    .schema-hero { padding: 28px 20px; border-radius: 12px; }
    .schema-hero h1 { font-size: 22px; }
    .schema-output { font-size: 0.78rem; }
}
