/* search-modal.css */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Varsayılan olarak gizli */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Diğer içeriklerin üzerinde olmalı */
    overflow-y: auto; /* Modal içeriği taşarsa kaydırma çubuğu */
}

.search-results-modal {
    background-color: #1e1e2d; /* Resimdeki arka plan rengine yakın */
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px; /* Modalın genişliği */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    color: #fff;
    margin: 20px 0; /* Üst ve alttan boşluk */
}

.search-results-modal h2 {
    color: #fff;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
}

.search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    font-size: 1em;
}

.search-input::placeholder {
    color: #aaa;
}

.search-bar {
    position: relative;
}

.search-results-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 100;
    background: #23232b;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    margin-top: 4px;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

/* Custom scrollbar for webkit browsers */
.search-results-content::-webkit-scrollbar {
    width: 8px;
}

.search-results-content::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

.search-results-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.search-results-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #2c2c3e;
    border-radius: 4px;
    cursor: pointer;
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-item img {
    width: 60px;
    height: 90px;
    margin-right: 15px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info {
    flex-grow: 1;
}

.search-result-info h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1em;
    line-height: 1.3;
}

.search-result-info p {
    margin: 5px 0 0;
    color: #ccc;
    font-size: 0.9em;
}

.search-result-info .genres {
    margin-top: 5px;
}

.search-result-info .genres span {
    background-color: #555;
    color: #eee;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 5px;
    font-size: 0.8em;
    white-space: nowrap;
} 