
/* Search buton */
.b_search-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 4px;
    outline: none;
}

.search-toggler {
    background: none;
    border: none;
    cursor: pointer;
}

.b_search-btn:hover {
    color: #007bff;
    background-color: rgba(15, 76, 129, 0.1);
}

.b_search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.b_search-popup.b_search-active {
    display: block;
    opacity: 1;
}

.b_search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.b_search-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.b_search-popup.b_search-active .b_search-container {
    transform: translate(-50%, -50%) scale(1);
}

/* Search header */
.b_search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #007bff 0%, #0965c5 100%);
    color: white;
}

.b_search-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.b_search-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.b_search-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Search form */
.b_search-form {
    padding: 25px;
}

.b_search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.b_search-input-container:focus-within {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.b_search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.b_search-input::placeholder {
    color: #999;
}

.b_search-submit {
    background: #007bff;
    border: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.b_search-submit:hover {
    background: #0965c5;
}

/* Search result */
.b_search-results {
    max-height: 400px;
    overflow-y: auto;
}

.b_search-suggestions {
    padding: 0 25px 25px;
}

.b_search-section {
    margin-bottom: 20px;
    padding: 10px;
}

.b_search-section h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b_suggestion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.b_suggestion-list li {
    margin-bottom: 8px;
}

.b_suggestion-list a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid transparent;
}

.b_suggestion-list a:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
    transform: translateX(5px);
}

/* Dynamic search sonuc */
.b_search-result-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.b_search-result-item mark {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #856404;
}

.b_search-result-item:hover {
    background: #f8f9fa;
}

.b_search-result-item:last-child {
    border-bottom: none;
}

.b_search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    border: 2px solid #eee;
    background: #f8f9fa;
}

.b_search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.b_search-result-item:hover .b_search-result-image img {
    transform: scale(1.05);
}

.b_search-result-content {
    flex: 1;
}

.b_search-result-title {
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.b_search-result-desc {
    color: #666;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.b_search-result-type {
    font-size: 11px;
    color: #007bff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

/* Loading State */
.b_search-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.b_search-loading i {
    animation: spin 1s linear infinite;
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results */
.b_search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.b_search-no-results i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .b_search-container {
        width: 95%;
        margin: 20px;
    }
    
    .b_search-header {
        padding: 15px 20px;
    }
    
    .b_search-form {
        padding: 20px;
    }
    
    .b_search-input {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .b_search-submit {
        padding: 12px 15px;
    }
    
    .b_search-suggestions {
        padding: 0 20px 20px;
    }
    
    .b_search-result-item {
        padding: 12px 15px;
    }
    
    .b_search-result-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-right: 12px;
    }
}

/* Animation Classes */
.b_search-fade-in {
    animation: fadeIn 0.3s ease;
}

.b_search-fade-out {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* Scrollbar Styling */
.b_search-results::-webkit-scrollbar {
    width: 6px;
}

.b_search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.b_search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.b_search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
