/* 사이트맵 생성기 스타일 - mockup-generator 디자인 언어 차용 (emerald/teal 테마) */
.sitemap-generator-tool.smg-tool {
    --tool-primary: #059669;
    --tool-bg: #ecfdf5;
    --tool-gradient: linear-gradient(135deg, #059669 0%, #0d9488 100%);
}

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

/* 탭 (nav-pills) */
.smg-tool .nav-pills .nav-link {
    color: #495057;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s;
}
.smg-tool .nav-pills .nav-link.active {
    background: var(--tool-gradient);
    border-color: transparent;
    color: #fff;
}
.smg-tool .nav-pills .nav-link:not(.active):hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}

/* 액션 버튼 */
.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;
}
.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 32px;
    font-size: 15px;
    border-radius: 12px;
}
.btn-action-primary {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
}
/* CRITICAL: primary 버튼 hover 시 색상이 사라지지 않도록 그라데이션 고정 */
.btn-action-primary:hover {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.3);
}

/* 에디터 카드 */
.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;
    gap: 12px;
}
.editor-title {
    font-weight: 700;
    font-size: 14px;
    color: #343a40;
}
.editor-title i {
    color: var(--tool-primary);
}
.editor-body {
    padding: 16px;
}

/* 입력 폼 요소 */
.editor-textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fb;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #212529;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
.editor-textarea:focus {
    border-color: var(--tool-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}
.smg-tool .form-control:focus,
.smg-tool .form-select:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}
.smg-tool .form-check-input:checked {
    background-color: var(--tool-primary);
    border-color: var(--tool-primary);
}

/* URL 행 */
.sitemap-url-row {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sitemap-url-row:hover {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.12);
}
.sitemap-url-row .form-control,
.sitemap-url-row .form-select {
    font-size: 0.85rem;
}
.sitemap-url-row .btn-remove-row {
    color: #adb5bd;
    border: none;
    background: none;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}
.sitemap-url-row .btn-remove-row:hover {
    color: #dc3545;
}

/* 생성된 XML 출력 (다크 코드 블록) */
.sitemap-output {
    width: 100%;
    font-size: 0.82rem;
    line-height: 1.6;
    background-color: #1e1e2e;
    color: #cdd6f4;
    border: 1px solid #1e1e2e;
    border-radius: 12px;
    padding: 16px;
    outline: none;
    resize: vertical;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
.sitemap-output:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}

/* 검증 상태 아이콘 */
.sitemap-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.sitemap-status-valid .sitemap-status-icon {
    background-color: rgba(5, 150, 105, 0.1);
    color: #059669;
}
.sitemap-status-invalid .sitemap-status-icon {
    background-color: rgba(255, 78, 66, 0.1);
    color: #ff4e42;
}
.sitemap-status-warning .sitemap-status-icon {
    background-color: rgba(255, 164, 0, 0.1);
    color: #ffa400;
}

/* 통계 카드 */
.sitemap-stat-card {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    background: #fff;
}
.sitemap-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tool-primary);
}
.sitemap-stat-label {
    font-size: 0.75rem;
    color: #868e96;
    margin-top: 0.25rem;
}

/* 문제 목록 */
.sitemap-issue-item {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.375rem;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.sitemap-issue-item.issue-error {
    border-left: 3px solid #ff4e42;
    background-color: rgba(255, 78, 66, 0.03);
}
.sitemap-issue-item.issue-warning {
    border-left: 3px solid #ffa400;
    background-color: rgba(255, 164, 0, 0.03);
}
.sitemap-issue-item .issue-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.sitemap-issue-item .issue-badge-error {
    background-color: rgba(255, 78, 66, 0.1);
    color: #ff4e42;
}
.sitemap-issue-item .issue-badge-warning {
    background-color: rgba(255, 164, 0, 0.1);
    color: #ffa400;
}

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

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

/* 반응형 */
@media (max-width: 768px) {
    .smg-hero { padding: 28px 20px; border-radius: 12px; }
    .smg-hero h1 { font-size: 22px; }
    .btn-action-lg { width: 100%; justify-content: center; }
}
