/*
 * Wine Search Bar CSS
 * Styling for the wine search container, form elements, and buttons
 */

/* Search Container Styles */
.search-container {
    background-color: #fff;
    padding: 30px;  /* Increased padding */
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    font-family: Arial, Helvetica, sans-serif; /* Standard readable font instead of curly font */
}

.search-header {
    text-align: center;
    margin-bottom: 25px;
    background-color: #800000;  /* Wine red background */
    padding: 15px;  /* Increased padding */
    border-radius: 6px;
}

.search-title {
    color: #ffffff;
    font-size: 1.8rem;  /* Increased font size for better readability */
    margin: 0;
    font-weight: 600;  /* Bolder weight for better readability */
    letter-spacing: 0.02em;
    text-transform: uppercase; /* Consistent capitalization */
}

/* Active filters styling - Moved to top of search form */
.active-filters {
    display: flex;
    align-items: center;
    margin-bottom: 25px;  /* Space before the search form */
    padding: 15px;
    background-color: #f0e6e6;  /* Light wine-tinted background */
    border: 2px solid #800000;  /* Wine-colored border */
    border-radius: 6px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 700;  /* Bolder label */
    margin-right: 15px;
    color: #800000;  /* Wine colored text */
    font-size: 1.2rem;  /* Larger text */
    text-transform: uppercase;  /* Consistent capitalization */
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;  /* Increased spacing between tags */
}

.filter-tag {
    background-color: #800000;
    color: white;
    padding: 8px 16px;  /* More padding */
    border-radius: 20px;
    font-size: 1.1rem;  /* Larger font size */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);  /* Enhanced shadow */
    display: inline-flex;
    align-items: center;
    font-weight: 500;  /* Medium weight */
}

.wine-search-form {
    margin-bottom: 20px;
}

/* Search Grid Layout */
.search-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;  /* Increased spacing */
    margin-bottom: 30px;  /* Added margin */
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-label {
    font-weight: 700;  /* Bolder label */
    margin-bottom: 10px;
    color: #333;  /* Darker for better contrast */
    font-size: 1.2rem;  /* Larger font */
    text-transform: uppercase;  /* Consistent capitalization */
}

.search-input,
.search-select {
    width: 100%;
    padding: 15px;  /* Larger input fields */
    border: 2px solid #ddd;  /* Thicker border */
    border-radius: 6px;
    font-size: 1.2rem;  /* Larger font size */
    transition: all 0.2s ease;
    background-color: #f9f9f9;
}

.search-input:focus,
.search-select:focus {
    border-color: #800000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.15);
    background-color: #fff;
}

/* Centered buttons styling */
.search-actions-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;  /* Increased margin */
    gap: 20px;  /* Added gap between buttons */
}

.search-button-wrapper,
.clear-button-wrapper {
    display: inline-block;
    vertical-align: middle;
    height: 50px;  /* Taller buttons */
}

.search-button,
.clear-button {
    display: inline-block;
    padding: 0 25px;  /* More horizontal padding */
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.3rem;  /* Larger font size */
    font-weight: 600;  /* Bolder text */
    text-align: center;
    min-width: 150px;  /* Wider buttons */
    height: 50px;
    line-height: 50px;
    box-sizing: border-box;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    text-transform: uppercase;  /* Consistent capitalization */
}

.search-button {
    background-color: #800000;
    color: white;
    border: none;
}

.clear-button {
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
    text-decoration: none;
}

.search-button:hover {
    background-color: #600000;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.clear-button:hover {
    background-color: #e5e5e5;
    color: #333;
    transform: translateY(-1px);
}

/* Button highlight animation */
.search-button.highlight {
    animation: pulse 2s 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(128, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(128, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(128, 0, 0, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-actions-container {
        flex-direction: column;
        gap: 15px;
    }

    .search-button,
    .clear-button {
        width: 100%;
        min-width: 220px;
    }

    .search-header {
        padding: 12px;
    }

    .search-title {
        font-size: 1.5rem;
    }

    .search-label {
        font-size: 1.1rem;
    }

    .search-input,
    .search-select,
    .filter-tag {
        font-size: 1.1rem;
    }
}
