/* assets/css/universal-favorites.css */

/* Favorite list specific styles */
.universal-favorites-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.favorite-item {
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.favorite-item:hover {
    border-color: #003D5e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.favorite-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.favorite-title {
    margin: 0;
    flex: 1;
    font-size: 18px;
    line-height: 1.4;
}

.favorite-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.favorite-title a:hover {
  /*  color: #007cba;*/
  color: #003D5e!important;

}

.favorite-action {
    flex-shrink: 0;
    margin-left: auto;
}

/* Button styles (keep your existing button styles but add these) */
.universal-favorites-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    color: #6c757d;
    position: relative;
}

.universal-favorites-btn:hover {
    background: #f8f9fa;
    transform: scale(1.1);
    color: #495057;
}

.universal-favorites-active {
    color: #ff6b6b;
}

.universal-favorites-active:hover {
    color: #ff5252;
    background: #fff0f0;
}

.universal-favorites-login {
    text-decoration: none;
    color: #6c757d;
}

.universal-favorites-login:hover {
    color: #495057;
    background: #f8f9fa;
}

/* Loading state */
.universal-favorites-loading {
    opacity: 0.6;
    cursor: wait;
}

.universal-favorites-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: universal-favorites-spin 1s linear infinite;
}

@keyframes universal-favorites-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.universal-favorites-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .favorite-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .favorite-action {
        margin-left: 0;
        align-self: flex-end;
    }

    .favorite-title {
        font-size: 16px;
    }
}

/* Elementor specific styling */
.elementor-widget-shortcode .universal-favorites-btn {
    margin: 0;
}
