/* ToolHane — yeni araçların ortak ek stilleri (hesap_araclari.css ile birlikte yüklenir) */

.ha-grid-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ha-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ha-grid-3 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .ha-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ha-select { appearance: auto; }

.ha-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.ha-tab {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}
.ha-tab.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }
.dark .ha-tab { background: #1f2937; border-color: #4b5563; color: #e5e7eb; }
.dark .ha-tab.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }

.ha-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    font-size: 1rem;
    cursor: pointer;
}
.ha-chip:hover { background: #eef2ff; border-color: #c7d2fe; }
.dark .ha-chip { background: #111827; border-color: #374151; color: #f3f4f6; }
.dark .ha-chip:hover { background: #1e1b4b; border-color: #4338ca; }

.ha-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    background: #fff;
}
.dark .ha-row { background: #1f2937; border-color: #374151; }
.ha-row-label { font-size: 0.75rem; color: #6b7280; min-width: 7rem; }
.dark .ha-row-label { color: #9ca3af; }
.ha-row-value { flex: 1; min-width: 0; font-size: 1.125rem; color: #111827; overflow-wrap: anywhere; }
.dark .ha-row-value { color: #f9fafb; }

.ha-copy-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8125rem;
    font-weight: 600;
}
.ha-copy-btn:hover { background: #dbeafe; }
.dark .ha-copy-btn { background: rgba(30, 58, 138, 0.45); color: #bfdbfe; }

.ha-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translate(-50%, 1rem);
    padding: 0.6rem 1.1rem;
    border-radius: 9999px;
    background: #111827;
    color: #fff;
    font-size: 0.875rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 60;
}
.ha-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.ha-progress { height: 0.5rem; border-radius: 9999px; background: #e5e7eb; overflow: hidden; }
.dark .ha-progress { background: #374151; }
.ha-progress > div { height: 100%; width: 0; background: linear-gradient(90deg, #3b82f6, #8b5cf6); transition: width 0.2s; }

.ha-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    background: #f8fafc;
    color: #475569;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.ha-drop.is-over, .ha-drop:hover { border-color: #3b82f6; background: #eff6ff; }
.dark .ha-drop { background: #111827; border-color: #4b5563; color: #cbd5e1; }
.dark .ha-drop.is-over, .dark .ha-drop:hover { background: #172554; border-color: #3b82f6; }

.ha-warn {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.875rem;
}
.dark .ha-warn { background: rgba(120, 53, 15, 0.35); border-color: #92400e; color: #fcd34d; }

.ha-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.ha-table th, .ha-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #e5e7eb; text-align: left; }
.ha-table th { font-weight: 600; color: #374151; background: #f9fafb; }
.ha-table td.num, .ha-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dark .ha-table th { background: #111827; color: #e5e7eb; }
.dark .ha-table th, .dark .ha-table td { border-color: #374151; color: #d1d5db; }

.ha-seo ul { list-style: disc; padding-left: 1.25rem; color: #4b5563; margin-bottom: 0.75rem; }
.dark .ha-seo ul { color: #d1d5db; }
.ha-seo li { margin-bottom: 0.35rem; line-height: 1.6; }
