/* ── AttentIQ Design Tokens ───────────────────────── */

.aiq-docs-wrapper {
    --bg:           #f7f8fc;
    --surface:      #ffffff;
    --border:       #e8eaf0;
    --border-soft:  #f0f2f7;
    --primary:      #6c63ff;
    --primary-soft: #ede9ff;
    --primary-dark: #5a52d5;
    --mint:         #00c9a7;
    --mint-soft:    #e0faf5;
    --amber:        #f59e0b;
    --amber-soft:   #fff8e5;
    --red:          #ef4444;
    --red-soft:     #fef2f2;
    --text:         #1e1e2e;
    --text-2:       #6b7280;
    --text-3:       #9ca3af;
    --green:        #10b981;
    --green-soft:   #ecfdf5;
    --shadow-sm:    0 1px 3px rgba(108,99,255,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 16px rgba(108,99,255,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --radius:       10px;
    --radius-sm:    6px;
    --radius-pill:  4px;
}


.aiq-docs-wrapper *,
.aiq-docs-wrapper *::before,
.aiq-docs-wrapper *::after {
    box-sizing: border-box;
}



/* ─────────────────────────────────────────
   AttentIQ Docs Layout
───────────────────────────────────────── */

.aiq-docs-wrapper {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
}

/* ─────────────────────────────────────────
   Search Bar
───────────────────────────────────────── */

.aiq-doc-search {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
}

#aiq-doc-search-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

#aiq-doc-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.aiq-docs-wrapper input {
    max-width: 100%;
}

/* Live Results Dropdown */

#aiq-doc-search-results {
    position: absolute;
    display: none;
    top: 110%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}


.aiq-live-results {
    margin: 0;
    padding: 0;
}

.aiq-live-results li {
    list-style: none;
}

.aiq-live-results a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s ease;
    text-decoration: none;
}

.aiq-live-results a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.aiq-search-result mark {
    background: #cdfb6f;
    padding: 0 5px;
}

/* Highlight */
.aiq-highlight {
    background: var(--mint-soft);
    color: var(--mint);
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}


/* ─────────────────────────────────────────
   Category Sections
───────────────────────────────────────── */

.aiq-doc-category {
    margin-bottom: 50px;
}

.aiq-doc-category h2 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: solid 1px #bbb2c8;
}

/* Article List */

.aiq-doc-category ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    padding: 0;
    margin: 0;
}

.aiq-doc-category li {
    list-style: none;
}

.aiq-doc-category a {
    display: block;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: va
}

/* ─────────────────────────────────────────
   Animated Gradient Glow
───────────────────────────────────────── */

.aiq-search-wrap {
    position: relative;
    border-radius: var(--radius);
}

.aiq-search-wrap::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 2px);
    background: linear-gradient(
        120deg,
        var(--primary),
        var(--mint),
        var(--primary)
    );
    background-size: 200% 200%;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
    animation: aiqGradientMove 6s ease infinite;
}

.aiq-search-wrap:focus-within::before {
    opacity: 0.6;
}

#aiq-doc-search-input {
    position: relative;
    z-index: 1;
    background: var(--surface);
}

/* Smooth animated gradient movement */
@keyframes aiqGradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
