/* ===== 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);
}

/* ══════════════════════════════════════════
   THÈME BOIS LÉGENDAIRE — Loupe Academy
   ══════════════════════════════════════════ */

/* Conteneur loupe — bois medium avec bord or */
[data-theme=wood-legendary] .ga-search-premium {
    background-color: rgba(60,40,18,0.85) !important;
    background-image: url('../textures/wood-medium.jpg?v=1774293320') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
    border: 1px solid rgba(212,164,76,0.45) !important;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,220,140,0.12),
        inset 0 -1px 0 rgba(0,0,0,0.25) !important;
}

[data-theme=wood-legendary] .ga-search-premium:hover {
    border-color: rgba(212,164,76,0.7) !important;
    box-shadow:
        0 3px 12px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,220,140,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.3),
        0 0 0 1px rgba(212,164,76,0.15) !important;
}

/* Icône loupe — or ambré */
[data-theme=wood-legendary] .ga-search-icon {
    color: #D4A44C !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6)) !important;
}

[data-theme=wood-legendary] .ga-search-icon:hover {
    color: #F0C870 !important;
    filter: drop-shadow(0 1px 4px rgba(212,164,76,0.5)) drop-shadow(0 0 8px rgba(212,164,76,0.3)) !important;
}

/* Input texte — couleur ivoire */
[data-theme=wood-legendary] .ga-search-input {
    color: #F2E8D0 !important;
    caret-color: #D4A44C !important;
}

[data-theme=wood-legendary] .ga-search-input::placeholder {
    color: rgba(180,140,90,0.7) !important;
    opacity: 1 !important;
}

/* État étendu — même bois avec bordure or renforcée */
[data-theme=wood-legendary] .ga-search-premium.expanded {
    border-color: rgba(212,164,76,0.65) !important;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,220,140,0.18),
        inset 0 -1px 0 rgba(0,0,0,0.3),
        0 0 0 1px rgba(212,164,76,0.18) !important;
}
