/* Spotify Search Modal Styles */
.spotify-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Modern Bildirim Sistemi */
.spotify-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotify-notification.show {
    transform: translateX(0);
}

.spotify-notification.success {
    background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.3);
}

.spotify-notification.warning {
    background: linear-gradient(135deg, #ff9500 0%, #ffcc00 100%);
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
}

.spotify-notification.error {
    background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
    box-shadow: 0 8px 25px rgba(255, 59, 48, 0.3);
}

.spotify-notification.info {
    background: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.spotify-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spotify-notification .notification-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.spotify-notification .notification-message {
    flex: 1;
    line-height: 1.4;
}

.spotify-notification .notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.8;
}

.spotify-notification .notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile için bildirim pozisyonu */
@media (max-width: 768px) {
    .spotify-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .spotify-notification.show {
        transform: translateY(0);
    }
}

.spotify-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Modal animasyonu kaldırıldı - anında görünüm için */

.spotify-modal-header {
    background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spotify-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spotify-header-left h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.spotify-header-left i {
    font-size: 1.2rem;
}

.spotify-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 3px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.spotify-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.spotify-modal-body {
    padding: 20px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.spotify-search-container {
    margin-bottom: 15px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 1rem;
    z-index: 1;
}

.spotify-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.spotify-search-input:focus {
    border-color: #1DB954;
    background: white;
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

/* Arama butonu kaldırıldı - artık otomatik arama yapılıyor */

.spotify-search-loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: #666;
}

.spotify-search-loading i {
    font-size: 2rem;
    color: #1DB954;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.spotify-search-results {
    max-height: 400px;
    overflow-y: auto;
}

.spotify-track-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.spotify-track-item:hover {
    background: #e8f5e8;
    border-color: #1DB954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 185, 84, 0.1);
}

.spotify-track-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.spotify-track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotify-track-info {
    flex: 1;
    min-width: 0;
}

.spotify-track-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-track-artist {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-track-album {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-track-duration {
    font-size: 0.9rem;
    color: #666;
    margin-right: 15px;
    flex-shrink: 0;
    font-family: monospace;
}

.spotify-track-select {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1DB954;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.spotify-track-item:hover .spotify-track-select {
    background: #1ed760;
    transform: scale(1.1);
}

.spotify-no-results,
.spotify-error {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spotify-no-results i,
.spotify-error i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.spotify-error i {
    color: #dc3545;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .spotify-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .spotify-modal-header {
        padding: 8px 12px;
    }
    
    .spotify-header-left h3 {
        font-size: 1rem;
    }
    
    .spotify-header-left i {
        font-size: 1.1rem;
    }
    
    .spotify-modal-body {
        padding: 15px;
    }
    
    .spotify-track-item {
        padding: 12px;
    }
    
    .spotify-track-image {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }
    
    .spotify-track-name {
        font-size: 0.9rem;
    }
    
    .spotify-track-artist {
        font-size: 0.8rem;
    }
    
    .spotify-track-album {
        font-size: 0.75rem;
    }
    
    .spotify-track-duration {
        font-size: 0.8rem;
        margin-right: 10px;
    }
    
    .spotify-track-select {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
