/**
 * Oblíbení umělci - Styly
 */

/* Wrapper */
.pm-favorite-artist-wrapper {
    position: relative;
    margin: 20px 0;
    display: inline-block;
}

/* Hlavní tlačítko */
.pm-favorite-artist-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pm-favorite-artist-btn:hover {
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Stav oblíbeného */
.pm-favorite-artist-btn.is-favorite {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.pm-favorite-artist-btn.is-favorite:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Ikony srdce */
.favorite-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    position: relative;
}

.favorite-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon-heart-empty {
    display: block;
}

.icon-heart-filled {
    display: none;
    color: currentColor;
}

.is-favorite .icon-heart-empty {
    display: none;
}

.is-favorite .icon-heart-filled {
    display: block;
}

/* Animace srdce při přidání */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.heart-animation .favorite-icon {
    animation: heartBeat 0.6s ease;
}

/* Loading stav */
.pm-favorite-artist-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.pm-favorite-artist-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Shake animace pro nepřihlášené */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.pm-favorite-artist-btn.shake {
    animation: shake 0.5s ease;
}

/* Login prompt */
.pm-favorite-login-prompt {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    text-align: center;
}

.pm-favorite-login-prompt::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.pm-favorite-login-prompt p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.prompt-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.prompt-buttons a {
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-register {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-register:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
}

/* Notifikace */
.pm-favorite-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    max-width: 350px;
    border-left: 4px solid;
}

.pm-favorite-notification.show {
    right: 20px;
}

.pm-favorite-notification.success {
    border-left-color: #4caf50;
}

.pm-favorite-notification.error {
    border-left-color: #f44336;
}

.notification-message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.notification-message::before {
    content: '✓';
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #4caf50;
    color: white;
    font-weight: bold;
}

.pm-favorite-notification.error .notification-message::before {
    content: '✕';
    background: #f44336;
}

/* Responsivní design */
@media (max-width: 768px) {
    .pm-favorite-artist-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .pm-favorite-login-prompt {
        left: 0;
        transform: none;
        right: 0;
        margin: 0 10px;
    }
    
    .pm-favorite-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .pm-favorite-notification.show {
        right: 10px;
    }
}

/* Integrace s profilem */
.favorite-artists-section {
    margin: 30px 0;
}

.favorite-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.favorite-artist-item {
    position: relative;
    text-align: center;
}

.favorite-artist-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.favorite-artist-item .artist-name {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.favorite-artist-item .artist-name:hover {
    color: #667eea;
}

.favorite-artist-item .remove-favorite {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.favorite-artist-item:hover .remove-favorite {
    opacity: 1;
}

.remove-favorite:hover {
    background: #f44336;
    color: white;
    transform: scale(1.1);
}

.no-favorites {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.no-favorites-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}