/* Search Overlay Styles */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    overflow-y: auto;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 760px;
    padding: 20px;
}

.search-overlay h2 {
    font-size: 28px;
    font-weight: 600;
    color: #454545;
    margin-bottom: 16px;
}

.search-overlay h3 {
    font-size: 18px;
    font-weight: 500;
    color: #454545;
    margin-bottom: 12px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .search-overlay {
        padding-top: 40px;
    }
    
    .search-overlay-content {
        padding: 15px;
    }
    
    .search-overlay h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .search-overlay h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.overlay-search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    font-size: 16px;
    border: 2px solid #E7E7E6;
    border-radius: 8px;
    background-color: #F9F9F9;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .overlay-search-input {
        padding: 10px 45px 10px 14px;
        font-size: 14px;
    }
}

.overlay-search-input:focus {
    border-color: #f37121;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(243, 113, 33, 0.15);
}

.overlay-search-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
}

.search-icon-svg {
    width: 24px;
    height: 24px;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #F9F9F9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #70706F;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .close-overlay {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

.close-overlay:hover {
    background: #E7E7E6;
}

/* Suggested Search Styles */
.suggested-searches {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .suggested-searches {
        margin-top: 15px;
    }
}

.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.chip {
    background-color: #F9F9F9;
    border: 1px solid #E7E7E6;
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 14px;
    color: #454545;
    cursor: pointer;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .chip {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.chip:hover {
    background-color: #f37121;
    border-color: #f37121;
    color: white;
}

/* Search Results Styles */
.search-results-container {
    margin-top: 20px;
}

.category-results {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .search-results-container {
        margin-top: 15px;
    }
    
    .category-results {
        margin-bottom: 15px;
    }
}

.category-results h3 {
    font-size: 18px;
    font-weight: 600;
    color: #454545;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.result-count {
    font-weight: 400;
    font-size: 16px;
    color: #70706F;
    margin-left: 8px;
}

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

.results-list li {
    height: auto;
    line-height: 1.2;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Basit liste stili - overlay için */
.search-result-link {
    display: block;
    padding: 4px 8px;
    text-decoration: none;
    color: #454545;
    border-radius: 4px;
    transition: all 0.2s;
    margin-bottom: 1px;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.search-result-link:hover {
    background-color: #F9F9F9;
    color: #f37121;
}

.result-title {
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    display: inline-block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .search-result-link {
        padding: 3px 6px;
        font-size: 13px;
    }
    
    .result-title {
        font-size: 13px;
    }
}

/* Eski kart stili - search results sayfası için */
.search-result-item {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    background-color: #F9F9F9;
    transition: all 0.2s;
}

.search-result-item:hover {
    background-color: #F6F6F5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.search-result-item h4 {
    font-size: 16px;
    font-weight: 500;
    color: #454545;
    margin: 0 0 4px 0;
}

.search-result-item p {
    font-size: 14px;
    color: #70706F;
    margin: 0;
}

.search-result-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Tüm sonuçları göster butonu */
.show-all-container {
    margin-top: 16px;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #E7E7E6;
}

.show-all-btn {
    background-color: #f37121;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.show-all-btn:hover {
    background-color: #e55a0a;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .show-all-container {
        margin-top: 12px;
        padding-top: 10px;
    }
    
    .show-all-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Category Filters */
.category-filter {
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

.category-filter:hover {
    color: #f37121 !important;
    background-color: #F9F9F9;
}

.category-filter.active {
    color: #f37121 !important;
    font-weight: 500;
}

/* Search Results Page Styles */
.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results-list li {
    transition: all 0.2s;
}

.search-results-list li:hover {
    background-color: #F9F9F9;
}

/* Mobile Filters */
@media (max-width: 1023px) {
    .search-overlay-content {
        padding: 20px;
        padding-top: 60px;
    }
    
    .close-overlay {
        top: 20px;
        right: 20px;
    }
}
