/* Search Icon Styles */
#top-search {
    position: relative;
    z-index: 9999;
    display: inline-block;
}

.search-trigger {
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    background-color: #007bff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.search-trigger:hover {
    background-color: #0056b3;
}

/* Overlay Styles */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    overflow: hidden;
}

.search-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 800px;
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.search-header h3 {
    color: #fff;
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.search-form-inner {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    color: #fff !important;
    font-size: 20px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-submit {
    background-color: #007bff;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 15px 25px;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: #0056b3;
}

.close-search {
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-search:hover {
    opacity: 1;
}

/* Search Suggestions */
.search-suggestions {
    margin-top: 30px;
}

.search-suggestions h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: normal;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-tags a {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.suggestion-tags a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Animation effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-overlay.active .search-overlay-content {
    animation: fadeIn 0.4s ease-out;
}

/* Responsive Styles */
@media screen and (max-width: 767px) {
    .search-overlay-content {
        width: 90%;
        padding: 20px;
    }
    
    .search-input {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .search-submit {
        padding: 12px 20px;
    }
    
    .search-header h3 {
        font-size: 18px;
    }
}