/* Favorite Manager Styles */
.favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: 2px solid #ff6b6b;
    background: transparent;
    color: #ff6b6b;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.favorite-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.favorite-btn.favorited {
    background: #ff6b6b;
    color: white;
}

.favorite-btn.not-favorited:hover {
    background: rgba(255, 107, 107, 0.1);
}

.favorite-icon {
    font-size: 16px;
}

.favorite-text {
    font-weight: 500;
}

/* My Favorites Container */
.favorites-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.favorites-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.favorites-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.favorites-filter a {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.favorites-filter a:hover,
.favorites-filter a.active {
    background: #ff6b6b;
    color: white;
}

/* Favorites Grid Layout */
.favorites-list.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.favorites-list.list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Favorite Item Card */
.favorite-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.favorite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.favorite-item-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
}

.favorite-item-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.favorite-item-info {
    flex: 1;
    min-width: 0;
}

.favorite-item-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.favorite-item-title a {
    color: #333;
    text-decoration: none;
}

.favorite-item-title a:hover {
    color: #ff6b6b;
}

.favorite-item-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.favorite-item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.remove-favorite-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    padding: 0;
}

.remove-favorite-btn:hover {
    color: #c82333;
}

/* List View Specific */
.favorites-list.list .favorite-item {
    display: flex;
    align-items: center;
}

.favorites-list.list .favorite-item-content {
    padding: 15px 20px;
    width: 100%;
}

/* Pagination */
.favorites-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State */
.favorites-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.favorites-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.favorites-empty h4 {
    margin-bottom: 10px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .favorites-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .favorites-filter {
        justify-content: center;
    }
    
    .favorites-list.grid {
        grid-template-columns: 1fr;
    }
    
    .favorite-item-content {
        flex-direction: column;
        text-align: center;
    }
    
    .favorite-item-thumbnail {
        align-self: center;
    }
}

/* Counter Style */
.favorites-counter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}