/*
 * Domain search UI shared by the public site (/domains/*) and the customer
 * dashboard (/admin/domains). Scoped under .ds-app. Brand colours from
 * public/assets/css/theme.css (#003D6B / #0066b3).
 */
.ds-app {
    --ds-brand: #003D6B;
    --ds-brand-strong: #0066b3;
    --ds-tint: #e6f0f7;
    --ds-brand-line: #b3d1e6;
    --ds-ink: #1c2b46;
    --ds-muted: #6b7a90;
    --ds-line: #e5e9f2;
    --ds-card: #ffffff;
    --ds-soft: #f5f6fa;
    --ds-ok: #0f9d74;
    --ds-ok-bg: rgba(30, 224, 172, 0.14);
    --ds-warn: #a37a00;
    --ds-warn-bg: rgba(244, 189, 14, 0.16);
    --ds-cta: #00a66a;
    --ds-cta-hover: #008c5a;
}

.dark-mode .ds-app {
    --ds-brand: #3399cc;
    --ds-tint: rgba(0, 102, 179, 0.18);
    --ds-brand-line: rgba(51, 153, 204, 0.35);
    --ds-ink: #e5ecf6;
    --ds-muted: #8094ae;
    --ds-line: #203247;
    --ds-card: #141c26;
    --ds-soft: #0d141d;
}

/* ---- Search form (designed for dark hero backgrounds) ---- */
.ds-form { position: relative; z-index: 1; display: flex; gap: 0.5rem; }
.ds-input-wrap { position: relative; flex: 1; }
.ds-input-wrap .ds-input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; color: #8094ae; pointer-events: none; }
.ds-input { width: 100%; height: 3.4rem; padding: 0 1rem 0 2.8rem; border: 0; border-radius: 10px; font-size: 1.0625rem; background: #ffffff; color: #1c2b46; box-sizing: border-box; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.ds-input::placeholder { color: #8a97a8; }
.ds-input:focus { outline: 3px solid rgba(0, 166, 106, 0.45); outline-offset: 1px; }
.ds-submit { height: 3.4rem; padding: 0 1.6rem; border: 0; border-radius: 10px; font-weight: 800; font-size: 1rem; background: var(--ds-cta); color: #ffffff; white-space: nowrap; cursor: pointer; box-shadow: 0 14px 26px rgba(0, 166, 106, 0.25); transition: background 0.15s ease, transform 0.15s ease; }
.ds-submit:hover { background: var(--ds-cta-hover); transform: translateY(-1px); }
.ds-submit:disabled { opacity: 0.75; cursor: default; transform: none; }

.ds-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; }
.ds-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; min-height: 2rem; }
.ds-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.1); color: #ffffff; font-size: 0.84rem; cursor: pointer; text-decoration: none; transition: background 0.15s ease; }
.ds-chip:hover { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.ds-chip strong { font-weight: 800; }
.ds-currency { display: inline-flex; padding: 0.2rem; border-radius: 9px; background: rgba(0, 0, 0, 0.22); }
.ds-currency button { border: 0; padding: 0.3rem 0.8rem; border-radius: 7px; font-size: 0.82rem; font-weight: 700; background: transparent; color: rgba(255, 255, 255, 0.82); cursor: pointer; }
.ds-currency button.active { background: #ffffff; color: #003D6B; }

/* ---- Results ---- */
.ds-alert { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 10px; font-size: 0.92rem; border: 1px solid transparent; }
.ds-alert.is-info { background: var(--ds-tint); color: var(--ds-brand); border-color: var(--ds-brand-line); }
.ds-alert.is-warning { background: var(--ds-warn-bg); color: var(--ds-warn); }
.ds-alert.is-danger { background: rgba(232, 83, 71, 0.12); color: #c43d32; }

.ds-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin: 1.75rem 0 0.75rem; }
.ds-section-title h2, .ds-section-title h6 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--ds-ink); }
.ds-section-title span { color: var(--ds-muted); font-size: 0.82rem; }
.ds-card { border: 1px solid var(--ds-line); border-radius: 14px; background: var(--ds-card); }
.ds-exact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.5rem; }
.ds-exact.is-available { border-color: var(--ds-brand-line); box-shadow: 0 0 0 3px var(--ds-tint); }
.ds-eyebrow { color: var(--ds-muted); font-size: 0.82rem; margin-bottom: 0.2rem; }
.ds-exact-name { font-size: 1.55rem; font-weight: 800; color: var(--ds-ink); word-break: break-all; line-height: 1.25; }
.ds-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--ds-line); }
.ds-row:last-child { border-bottom: 0; }
.ds-name { font-weight: 800; color: var(--ds-ink); word-break: break-all; }
.ds-tld { color: var(--ds-brand); }
.ds-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.3rem; }
.ds-reqs { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--ds-muted); font-size: 0.82rem; }
.ds-side { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.ds-price { text-align: right; }
.ds-price-main { font-size: 1.15rem; font-weight: 800; color: var(--ds-ink); }
.ds-price-sub { font-size: 0.76rem; color: var(--ds-muted); }
.ds-action { display: inline-flex; align-items: center; justify-content: center; min-height: 2.4rem; padding: 0 1rem; border-radius: 8px; font-weight: 800; font-size: 0.88rem; text-decoration: none; background: var(--ds-cta); color: #ffffff; white-space: nowrap; transition: background 0.15s ease; }
.ds-action:hover { background: var(--ds-cta-hover); color: #ffffff; }
.ds-status, .ds-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.74rem; font-weight: 700; }
.ds-status.is-available { background: var(--ds-ok-bg); color: var(--ds-ok); }
.ds-status.is-taken, .ds-status.is-checking { background: var(--ds-soft); color: var(--ds-muted); }
.ds-status.is-unknown { background: var(--ds-warn-bg); color: var(--ds-warn); }
.ds-tag { background: var(--ds-tint); color: var(--ds-brand); }
.ds-tag.is-premium { background: var(--ds-warn-bg); color: var(--ds-warn); }
.ds-row.is-taken .ds-name, .ds-row.is-taken .ds-price { opacity: 0.55; }
.ds-empty { padding: 2.5rem 1rem; text-align: center; color: var(--ds-muted); }
.ds-empty .ds-empty-icon { display: block; font-size: 2rem; margin-bottom: 0.5rem; color: var(--ds-brand); }
.ds-empty h2, .ds-empty h6 { color: var(--ds-ink); font-size: 1.05rem; font-weight: 800; }
.ds-note { color: var(--ds-muted); font-size: 0.8rem; margin: 1rem 0 0; }
.ds-skeleton { height: 1rem; border-radius: 6px; background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 37%, #eef1f6 63%); background-size: 400% 100%; animation: ds-shimmer 1.2s ease infinite; }
.dark-mode .ds-skeleton { background: linear-gradient(90deg, #1a2433 25%, #223044 37%, #1a2433 63%); background-size: 400% 100%; }
@keyframes ds-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.ds-hidden { display: none !important; }

@media (max-width: 575.98px) {
    .ds-form { flex-direction: column; }
    .ds-submit { width: 100%; }
    .ds-side { width: 100%; justify-content: space-between; margin-left: 0; }
    .ds-price { text-align: left; }
    .ds-exact-name { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ds-skeleton { animation: none; }
    .ds-submit, .ds-chip, .ds-action { transition: none; }
}
