/* Container da busca */
.hero-search {
    position: relative;
    max-width: 600px;
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
}

.hero-search form {
    display: contents;
    position: relative;
}

/* Container do input */
.hero-search form > div:first-child {
    position: relative;
}

/* Input de busca */
.hero-input {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    font-weight: 500;
    width: 100%;
}

.hero-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.hero-input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.hero-input.searching {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Botão de busca */
.search-button {
    background: linear-gradient(135deg, var(--gold), #b99a43);
    color: var(--dark);
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.search-button:hover::before {
    left: 100%;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #b99a43, var(--gold));
}

.search-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Sugestões de busca */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-top: none;
    border-radius: 0 0 15px 15px;
    margin-top: -5px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    padding: 15px 20px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    font-weight: 500;
}

.suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}

.suggestion-item i {
    color: var(--gold);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    color: var(--gold);
    transform: translateX(5px);
}

/* Animação de loading no botão */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-button:disabled {
    opacity: 0.8;
    cursor: wait;
}

.search-button:disabled i {
    animation: spin 1s linear infinite;
}

/* Scrollbar personalizada para as sugestões */
.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 10px 10px 0;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #b99a43;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-search {
        margin: 20px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-input {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .search-button {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .search-suggestions {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 50vh;
        border-radius: 20px 20px 0 0;
        border: none;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    .suggestion-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .suggestion-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .search-button {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .hero-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}
