/* ═══════════════════════════════════════════════════════════════
   Domain Finder — Keyword Suggestion UI
   Adapted for the new hostx domainchecker template (2026).

   The finder input + button live directly inside .hl-search-wrapper
   so they inherit sticky behaviour and the hard-lock UX.
   The tab bar sits inside form#frmSearch, above #searchWrapperAnchor,
   within .hl-domain-search-card (navy background).
   ═══════════════════════════════════════════════════════════════ */

/* ─── 0. UTILITY ─────────────────────────────────────────────── */
/* Reliable hide that beats template !important display rules.    */

/* Double-class + context selector to beat .hl-search-wrapper button
   which has display: inline-flex !important at specificity (0,1,1). */
.domainfinder-hidden.domainfinder-hidden,
.hl-search-wrapper .domainfinder-hidden {
    display: none !important;
}

/* ─── 1. TAB BAR ─────────────────────────────────────────────── */
/* Inside .hl-domain-search-card on the navy background.          */

.domainfinder-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 0 2.5rem;
}

.domainfinder-tab {
    background: rgba(255, 255, 255, 0.06);
    border: 0.15rem solid rgba(255, 255, 255, 0.2);
    border-radius: 5rem;
    padding: 0.9rem 2.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-reg, 'Poppins', sans-serif);
    font-size: var(--fluid-small, 1.4rem);
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease,
                transform 0.25s ease, box-shadow 0.25s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.domainfinder-tab:hover {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    transform: translateY(-0.1rem);
}

.domainfinder-tab--active {
    background: var(--h-mint, #00ad8b);
    border-color: var(--h-mint, #00ad8b);
    color: var(--h-white, #ffffff);
    font-family: var(--font-semi, 'Poppins', sans-serif);
    box-shadow: 0 0.6rem 1.8rem rgba(0, 173, 139, 0.3);
}

.domainfinder-tab--active:hover {
    transform: translateY(-0.1rem);
    box-shadow: 0 0.8rem 2.2rem rgba(0, 173, 139, 0.4);
}

/* ─── 2. FINDER INPUT + BUTTON ───────────────────────────────── */
/* These sit inside .hl-search-wrapper and inherit the generic
   input[type="text"] / button rules from the template CSS.
   We only add ID-specific overrides to match the desktop/mobile
   sizing that the template applies to #txtSearch/#btnDomaincheckerSubmit. */

/* Desktop: match the template's ID-specific sizing */
@media (min-width: 769px) {
    body #areaSearch .hl-search-wrapper:not(.is-sticky) #keywordInput,
    body #areaSearch .hl-search-wrapper:not(.is-sticky) #btnGenerateSuggestions {
        height: 5.8rem !important;
        min-height: 5.8rem !important;
        font-size: 1.6rem !important;
    }
}

/* Mobile: match the template's ID-specific sizing */
@media (max-width: 768px) {
    body #areaSearch .hl-search-wrapper:not(.is-sticky) #keywordInput,
    body #areaSearch .hl-search-wrapper:not(.is-sticky) #btnGenerateSuggestions {
        height: 4.8rem !important;
        min-height: 4.8rem !important;
        font-size: 1.5rem !important;
        width: 100% !important;
        flex: auto !important;
    }
}

/* ─── 3. STATUS MESSAGES ─────────────────────────────────────── */
/* Rendered inside .hl-domain-search-card on the navy background. */

.domainfinder-status {
    text-align: center;
    margin: 1.5rem auto 0;
    padding: 1rem 2.5rem;
    border-radius: 5rem;
    font-family: var(--font-reg, 'Poppins', sans-serif);
    font-size: var(--fluid-small, 1.4rem);
    line-height: 1.5;
    max-width: 60rem;
	display: none;
}


/* Loading: ghost style on dark background */
.domainfinder-status--loading {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 0.1rem solid rgba(255, 255, 255, 0.12);
}

/* Success: mint tones */
.domainfinder-status--success {
    color: #ecfdf5;
    background: rgba(0, 173, 139, 0.2);
    border: 0.1rem solid rgba(0, 173, 139, 0.35);
}

/* Error: red tones on dark bg */
.domainfinder-status--error {
    color: #fecaca;
    background: rgba(185, 28, 28, 0.2);
    border: 0.1rem solid rgba(185, 28, 28, 0.35);
}

/* Warning: amber tones on dark bg */
.domainfinder-status--warning {
    color: #fde68a;
    background: rgba(180, 83, 9, 0.2);
    border: 0.1rem solid rgba(180, 83, 9, 0.35);
}

/* Info: subtle on dark bg (no results) */
.domainfinder-status--info {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 0.1rem solid rgba(255, 255, 255, 0.1);
}

/* --- KI / AI BADGE DESIGN (On-Brand) --- */
#listResults .hl-badges-wrapper span.label.domainfinder-strategy {
    font-family: var(--font-semi, 'Poppins', sans-serif) !important;
    font-size: 1.1rem !important;
    text-transform: none !important;
    letter-spacing: 0.05rem !important;
    padding: 0.5rem 1.4rem !important;
    border-radius: 5rem !important;
    white-space: nowrap !important;
    
    /* Magischer On-Brand Farbverlauf: Tiefes Navy geht fließend in leuchtendes Mint über */
    background: linear-gradient(135deg, #10263e 0%, #00a887 100%) !important;
    color: #ffffff !important;
    border: none !important;
    
}

/* ─── 5. MOBILE ──────────────────────────────────────────────── */

@media (max-width: 768px) {
    .domainfinder-tabs {
        gap: 0.8rem;
        padding: 0 0 1.5rem;
    }

    .domainfinder-tab {
        padding: 0.7rem 2rem;
        font-size: 1.2rem;
    }

    .domainfinder-status {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
        border-radius: 1.5rem;
    }
}

@media (max-width: 480px) {
    .domainfinder-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .domainfinder-tab {
        width: 100%;
        max-width: 28rem;
        text-align: center;
    }
}
