/* Homepage Modern Search Component - Red Brand */

/* Full Screen Banner Area */
.banner-area-fullscreen {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 20px;
    border-radius: 20px;
}

.banner-area-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(220, 38, 38, 0.3) 100%);
    z-index: 1;
}

.banner-area-fullscreen .container {
    position: relative;
    z-index: 2;
}

/* Centered Search Content */
.banner-search-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 30px 0;
}

.banner-search-content {
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.banner-search-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.banner-search-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.homepage-search-wrapper {
    position: relative;
    margin-top: 0;
    z-index: 1;
}

.homepage-search-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0;
    z-index: 1;
}

.banner-area .container {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.homepage-search-container {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    border: 2px solid rgba(220, 38, 38, 0.2);
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.homepage-search-form {
    position: relative;
    z-index: 1;
}

/* Search Tabs */
.homepage-search-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.search-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    min-width: 120px;
}

.search-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.search-tab-btn:hover::before {
    left: 100%;
}

.search-tab-btn:hover {
    border-color: rgba(220, 38, 38, 0.4);
    color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.search-tab-btn.active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.search-tab-btn i {
    font-size: 16px;
}

/* Search Input Group */
.homepage-search-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.homepage-search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.homepage-search-icon {
    position: absolute;
    left: 18px;
    color: #dc2626;
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
}

.homepage-search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    font-size: 15px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.3s ease;
    outline: none;
}

.homepage-search-input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    background: #ffffff;
}

.homepage-search-input::placeholder {
    color: #9ca3af;
}

/* Category Select */
.homepage-search-category-wrapper {
    min-width: 200px;
}

.homepage-search-category {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    font-size: 15px;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23dc2626' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.homepage-search-category:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.homepage-search-category:hover {
    border-color: rgba(220, 38, 38, 0.4);
}

/* Search Button */
.homepage-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
    white-space: nowrap;
}

.homepage-search-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.4);
}

.homepage-search-btn:active {
    transform: translateY(0);
}

.homepage-search-btn i {
    font-size: 18px;
}

/* Search Results */
.homepage-search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: none;
}

.homepage-search-results.show {
    display: block;
}

.homepage-search-results::-webkit-scrollbar {
    width: 8px;
}

.homepage-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 12px;
}

.homepage-search-results::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 12px;
}

.homepage-search-results::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Responsive Design */
@media (max-width: 991px) {
    .banner-area-fullscreen {
        min-height: 65vh;
        margin: 15px;
        border-radius: 15px;
    }
    
    .banner-search-centered {
        min-height: 50vh;
        padding: 25px 0;
    }
    
    .banner-search-title {
        font-size: 42px;
    }
    
    .banner-search-subtitle {
        font-size: 18px;
    }
    
    .homepage-search-container {
        padding: 28px;
    }
    
    .homepage-search-input-group {
        flex-direction: column;
    }
    
    .homepage-search-input-wrapper,
    .homepage-search-category-wrapper {
        width: 100%;
        min-width: 100%;
    }
    
    .homepage-search-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .banner-area-fullscreen {
        min-height: 60vh;
        margin: 12px;
        border-radius: 12px;
    }
    
    .banner-search-centered {
        min-height: 45vh;
        padding: 20px 0;
    }
    
    .banner-search-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .banner-search-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .homepage-search-container {
        padding: 24px;
        border-radius: 20px;
    }
    
    .homepage-search-tabs {
        gap: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .search-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        min-width: 100px;
    }
    
    .search-tab-btn i {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .banner-area-fullscreen {
        min-height: 55vh;
        margin: 10px;
        border-radius: 10px;
    }
    
    .banner-search-centered {
        min-height: 40vh;
        padding: 15px 0;
    }
    
    .banner-search-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .banner-search-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .homepage-search-container {
        padding: 20px;
        border-radius: 16px;
    }
    
    .homepage-search-tabs {
        width: 100%;
        justify-content: center;
        gap: 6px;
    }
    
    .search-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        min-width: 80px;
    }
    
    .search-tab-btn span {
        display: none;
    }
    
    .homepage-search-btn span {
        display: none;
    }
}

