/* Custom Search Bar - Frontend Styles */

.csb-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-sizing: border-box;
    margin: 20px auto;
    position: relative;
    transition: all 0.3s ease;
}

.csb-container:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.csb-form {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.csb-input-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 12px;
}

.csb-search-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    padding: 0 8px;
}

.csb-search-input::placeholder {
    opacity: 1;
}

.csb-search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.csb-search-button:hover {
    transform: scale(1.1);
}

.csb-search-button:active {
    transform: scale(0.95);
}

.csb-search-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
    .csb-container {
        margin: 15px auto;
    }
    
    .csb-search-input {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .csb-container {
        margin: 10px auto;
        width: 100% !important;
        max-width: 100%;
    }
    
    .csb-search-input {
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .csb-container {
        /* Respects user's color settings from admin */
    }
}

/* Accessibility */
.csb-search-button:focus {
    outline: 2px solid rgba(0, 0, 0, 0.2);
    outline-offset: 2px;
}

.csb-search-input:focus {
    outline: none;
}
