/* Arama Kutusu Ana Stil - Orijinal tasarıma uygun */
.snrtr_SearchInput {
    width: 75%;
    height: 40px;
    border: 1px solid #675948;
    margin: 0px auto;
    position: relative;
    top: -5px;
    font-size: 14px;
    padding-left: 20px;
    background: url(../images/light-bg.jpg);
    box-shadow: 0px 0px 20px #191814;
    color: #ffdaa2;
    margin-left: 13%;
    box-sizing: border-box;
}

.snrtr_SearchInput:focus {
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    outline: none;
}

.snrtr_SearchInput::placeholder {
    color: #888;
}

/* Arama Sonuçları Container */
div#snrtr_aramaSonuc {
    width: 75%;
    height: auto !important;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #675948;
    top: 100%;
    font-size: 14px;
    padding: 0px;
    margin: 0px;
    left: 10%;
    position: absolute;
    z-index: 9999123;
    margin-left: 3%;
    text-align: left;
    background: url(../images/light-bg.jpg);
    box-shadow: 0px 0px 20px #191814;
    display: none;
}

/* UL/LI Temel Stiller */
div#snrtr_aramaSonuc ul {
    padding: 0px;
    list-style: none;
    margin: 0px;
}

div#snrtr_aramaSonuc ul li {
    padding: 0px;
    border: none;
    cursor: pointer;
    border-bottom: 1px solid #675948;
}

div#snrtr_aramaSonuc ul li:last-child {
    border-bottom: none;
}

div#snrtr_aramaSonuc ul li a {
    display: block;
    color: #ffdaa2 !important;
    text-decoration: none;
    width: 100%;
}

/* Sonuç Item - Resimli Layout */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    gap: 12px;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.1);
}

.search-result-item:hover {
    background: rgba(255, 218, 162, 0.15);
    transform: translateX(3px);
}

/* Resim Container */
.search-result-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../images/item-bg.png) no-repeat center;
    background-size: contain;
    border-radius: 4px;
    border: 1px solid #675948;
}

.search-result-icon img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

/* İçerik Alanı */
.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    color: #ffdaa2;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-info {
    color: #8e7c61;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Loading, Error, No Results */
.search-loading {
    padding: 30px 20px;
    text-align: center;
    color: #d4af37;
    font-style: italic;
    font-size: 14px;
}

.search-loading:before {
    content: "⏳ ";
    font-size: 18px;
}

.search-error {
    padding: 30px 20px;
    text-align: center;
    color: #ff6b6b;
    font-style: italic;
    font-size: 14px;
}

.search-error:before {
    content: "⚠️ ";
    font-size: 18px;
}

.search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #888;
    font-style: italic;
    font-size: 14px;
}

/* Kategoriler */
.search-category {
    border-bottom: 1px solid #675948;
}

.search-category:last-child {
    border-bottom: none;
}

.search-category-title {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    color: #d4af37;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid #675948;
    letter-spacing: 0.5px;
}

/* Ana Container */
.row.no-margin.no-padding {
    position: relative;
    margin: 0px !important;
    padding: 0px !important;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .snrtr_SearchInput {
        width: 90%;
        margin-left: 5%;
        font-size: 14px;
        padding: 10px 15px;
    }
    
    div#snrtr_aramaSonuc {
        width: 90%;
        left: 5%;
        margin-left: 0;
        max-height: 400px;
    }
    
    .search-result-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .search-result-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .search-result-icon img {
        max-width: 28px;
        max-height: 28px;
    }
    
    .search-result-name {
        font-size: 13px;
    }
    
    .search-result-info {
        font-size: 10px;
    }
}

/* Scrollbar Özelleştirme */
div#snrtr_aramaSonuc::-webkit-scrollbar {
    width: 8px;
}

div#snrtr_aramaSonuc::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

div#snrtr_aramaSonuc::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 4px;
}

div#snrtr_aramaSonuc::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}