/**
 * Transparent Search Bar Styles
 * 
 * @package PhantomRealtyEngine
 * @subpackage SearchBars
 */

/* Transparent Naked Search Styles with PRE Colors */
.naked-search-transparent {
    background: transparent;
    border: none;
    padding: 0;
}

.naked-search-transparent .naked-search-container {
    background: transparent;
}

.naked-search-transparent .naked-search-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin: 0;
    flex-wrap: wrap;
}

.naked-search-transparent .naked-search-group {
    position: relative;
    flex: 1;
    min-width: 120px;
}

/* True Naked Buttons - No background, white border, white text */
.naked-search-transparent .naked-search-input {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
}

.naked-search-transparent .naked-search-select {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
}

.naked-search-transparent .naked-search-select::-ms-expand {
    display: none;
}

/* Placeholder styling */
.naked-search-transparent .naked-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Dropdown options - White background with PRE primary color text */
.naked-search-transparent .naked-search-select option {
    background: white;
    /* Color dynamically injected via inline styles */
    padding: 8px;
}

/* Search button with PRE accent color */
.naked-search-transparent .naked-search-submit {
    background: var(--wp--preset--color--accent, var(--client-accent, #4a90a4));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.naked-search-transparent .naked-search-submit:hover {
    background: var(--wp--preset--color--primary, var(--client-primary, #2271b1));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Focus states */
.naked-search-transparent .naked-search-select:focus,
.naked-search-transparent .naked-search-input:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary, var(--client-primary, #2271b1));
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* Labels hidden but accessible */
.naked-search-transparent label {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .naked-search-transparent .naked-search-row {
        flex-direction: column;
        gap: 10px;
    }

    .naked-search-transparent .naked-search-group {
        flex: none;
        width: 100%;
    }
}
