/* robots.txt 생성기 스타일 - json-csv-converter 디자인 언어 차용 (slate 테마) */
.rtg-tool {
    --tool-primary: #334155;
    --tool-bg: #f1f5f9;
    --tool-gradient: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

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

/* 액션 버튼 (CRITICAL hover fix: primary는 hover 시 색 유지) */
.btn-action {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 9px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-action:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}
.btn-action-sm {
    padding: 5px 11px;
    font-size: 12.5px;
    border-radius: 8px;
}
.btn-action-lg {
    padding: 11px 28px;
    font-size: 15px;
    border-radius: 11px;
}
.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(51, 65, 85, 0.3);
}

/* 규칙 그룹 (JS 렌더링) */
.rtg-tool .robots-rule-group .card {
    border: 1px solid #e9ecef !important;
    background: #f8f9fb;
    border-radius: 12px !important;
}
.rtg-tool .robots-rule-group .form-select,
.rtg-tool .robots-rule-group .form-control,
.rtg-tool #sitemapUrl,
.rtg-tool #crawlDelay,
.rtg-tool #hostDirective {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rtg-tool .robots-rule-group .form-select:focus,
.rtg-tool .robots-rule-group .form-control:focus,
.rtg-tool #sitemapUrl:focus,
.rtg-tool #crawlDelay:focus,
.rtg-tool #hostDirective:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.12);
}

/* 경로 아이템 */
.robots-path-item .robots-path-type {
    font-weight: 600;
}

/* 규칙 그룹 내 삭제/추가 버튼 재테마 (Bootstrap outline 버튼 대체) */
.rtg-tool .robots-remove-rule,
.rtg-tool .robots-remove-path {
    border: 1px solid #f1aeb5;
    color: #dc3545;
    background: #fff;
    border-radius: 9px;
    font-weight: 600;
    font-size: 12.5px;
    transition: all 0.15s;
}
.rtg-tool .robots-remove-rule:hover,
.rtg-tool .robots-remove-path:hover {
    background: #fff5f5;
    border-color: #dc3545;
    color: #dc3545;
}
.rtg-tool .robots-add-path {
    border: 1px solid #dee2e6;
    color: #495057;
    background: #fff;
    border-radius: 9px;
    font-weight: 600;
    font-size: 12.5px;
    transition: all 0.15s;
}
.rtg-tool .robots-add-path:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}

/* 커스텀 UA 입력 */
.robots-custom-ua-wrap .robots-custom-ua {
    font-size: 13px;
}

/* 출력 영역 (catppuccin 다크) */
.robots-output {
    width: 100%;
    min-height: 280px;
    resize: vertical;
    border: 1px solid #313244;
    border-radius: 12px;
    background-color: #1e1e2e;
    color: #cdd6f4;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
    outline: none;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
.robots-output:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.18);
}

/* btnCopy: JS가 btn-outline-primary/btn-success 클래스를 토글하므로 호환 처리 */
.rtg-tool #btnCopy.btn-outline-primary {
    border-color: #dee2e6;
    color: #495057;
    background: #fff;
}
.rtg-tool #btnCopy.btn-outline-primary:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}
.rtg-tool #btnCopy.btn-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: none;
    color: #fff;
}

/* 서포트 카드 */
.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;
}

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

/* 반응형 */
@media (max-width: 768px) {
    .rtg-hero { padding: 28px 20px; border-radius: 12px; }
    .rtg-hero h1 { font-size: 22px; }
    .robots-output { min-height: 220px; }
}
</content>
