/* ===== Search Icon — Giri Academy v4 ===== */

.ga-search-premium {
    display: flex;
    align-items: center;
    height: 38px;
    border-radius: 19px;
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    background: var(--bg-secondary, rgba(255,255,255,0.06));
    transition: width 0.35s ease, box-shadow 0.3s ease;
    width: 38px;
    overflow: hidden;
    cursor: pointer;
}

.ga-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted, #888);
    cursor: pointer;
    transition: color 0.25s ease;
    padding: 0;
}

.ga-search-icon:hover {
    color: var(--accent, #8b5cf6);
}

.ga-search-input {
    width: 0;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text, #e0e0f0);
    font-size: 14px;
    outline: none;
    opacity: 0;
    transition: width 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    pointer-events: none;
    /* Kill browser voice/extras */
    -webkit-appearance: none;
    appearance: none;
}

.ga-search-input::-webkit-search-decoration,
.ga-search-input::-webkit-search-cancel-button,
.ga-search-input::-webkit-search-results-button,
.ga-search-input::-webkit-search-results-decoration,
.ga-search-input::-webkit-contacts-auto-fill-button,
.ga-search-input::-webkit-credentials-auto-fill-button {
    display: none !important;
    -webkit-appearance: none !important;
}

input[type="text"].ga-search-input::-ms-clear,
input[type="text"].ga-search-input::-ms-reveal {
    display: none;
}

.ga-search-input::placeholder {
    color: var(--text-muted, #888);
    opacity: 0.6;
}

/* Expanded */
.ga-search-premium.expanded {
    width: 260px;
    cursor: default;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.ga-search-premium.expanded .ga-search-icon {
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.25s ease;
}

.ga-search-premium.expanded .ga-search-input {
    width: 100%;
    padding: 0 14px;
    opacity: 1;
    pointer-events: auto;
}

/* Light theme */
:root[data-theme*="light"] .ga-search-premium.expanded {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
