/* ToolHane — ortak hesap/doğrulama araçları */

.ha-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.dark .ha-card {
    background: #1f2937;
    border-color: #374151;
}

.ha-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.375rem;
}

.dark .ha-label { color: #d1d5db; }

.ha-input, .ha-textarea, .ha-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    font-size: 1rem;
    outline: none;
}

.dark .ha-input, .dark .ha-textarea, .dark .ha-select {
    border-color: #4b5563;
    background: #111827;
    color: #f3f4f6;
}

.ha-input:focus, .ha-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.ha-textarea { resize: vertical; min-height: 12rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875rem; }

.ha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    transition: background 0.15s;
}

.ha-btn:hover { background: #1d4ed8; }

.ha-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.dark .ha-btn-outline {
    border-color: #4b5563;
    background: #1f2937;
    color: #e5e7eb;
}

.ha-btn-outline:hover { background: #f3f4f6; }
.dark .ha-btn-outline:hover { background: #374151; }

.ha-result {
    background: #0f172a;
    color: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
}

.ha-result-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin-bottom: 0.25rem; }
.ha-result-main { font-size: 2.25rem; font-weight: 700; color: #7dd3fc; font-variant-numeric: tabular-nums; }
.ha-result-sub { color: #cbd5e1; margin-top: 0.35rem; }
.ha-result-note { font-size: 0.875rem; color: #94a3b8; }
.ha-result.is-ok .ha-result-main { color: #34d399; }
.ha-result.is-bad .ha-result-main { color: #f87171; }

.ha-list { list-style: none; padding: 0; margin: 0; }
.ha-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.875rem;
    color: #cbd5e1;
}
.ha-list li span:last-child { color: #f8fafc; font-weight: 600; }

.ha-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.875rem;
}
.dark .ha-privacy {
    background: rgba(6, 78, 59, 0.35);
    border-color: #065f46;
    color: #6ee7b7;
}
.ha-privacy i { margin-top: 0.15rem; }

.ha-seo {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid #f3f4f6;
}
.dark .ha-seo { background: #1f2937; border-color: #374151; }
.ha-seo h2 { font-size: 1.25rem; font-weight: 700; color: #1f2937; margin-bottom: 0.75rem; }
.dark .ha-seo h2 { color: #fff; }
.ha-seo p { color: #4b5563; line-height: 1.7; margin-bottom: 0.75rem; }
.dark .ha-seo p { color: #d1d5db; }

.ha-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.ha-stats span {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #eff6ff;
    color: #1d4ed8;
}
.dark .ha-stats span { background: rgba(30, 58, 138, 0.4); color: #93c5fd; }
.ha-stats .added { background: #ecfdf5; color: #047857; }
.ha-stats .removed { background: #fef2f2; color: #b91c1c; }
.dark .ha-stats .added { background: rgba(6, 78, 59, 0.4); color: #6ee7b7; }
.dark .ha-stats .removed { background: rgba(127, 29, 29, 0.4); color: #fca5a5; }

.ha-diff {
    background: #0f172a;
    border-radius: 0.75rem;
    padding: 1rem;
    max-height: 28rem;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.55;
}
.ha-diff-line { white-space: pre-wrap; word-break: break-word; padding: 0.1rem 0.5rem; border-radius: 0.25rem; }
.ha-diff-line.same { color: #94a3b8; }
.ha-diff-line.add { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.ha-diff-line.del { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.ha-diff-prefix { display: inline-block; width: 1.25rem; opacity: 0.7; }

@media (min-width: 640px) {
    .ha-btn { width: auto; min-width: 12rem; }
}
